bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; } | public SocketAddress getLocalSocketAddress() { if (! isBound()) return null; if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; } | 16,747 |
public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; } | public SocketAddress getLocalSocketAddress() { InetAddress addr = getInetAddress(); if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort()); return null; } | 16,748 |
public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer... | public int getReceiveBufferSize () throws SocketException { if (impl == null) throw new SocketException ("Not connected"); Object buf = impl.getOption (SocketOptions.SO_RCVBUF); if (!(buf instanceof Integer)) throw new SocketException ("Internal Error: Unexpected type"); return ((Integer... | 16,749 |
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ... | public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); ... | 16,750 |
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } | protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } | 16,751 |
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } | protected final void implAccept (Socket s) throws IOException { if (isClosed()) throw new SocketException("ServerSocket is closed"); if (getChannel() != null && ! getChannel().isBlocking() && ! ((PlainSocketImpl) getImpl()).isInChannelOperation()) throw new IllegalBlockingModeException(); imp... | 16,752 |
protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(s.impl); } | protected final void implAccept (Socket s) throws IOException { if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException(); impl.accept(socket.impl); socket.implCreated = true; } | 16,753 |
public boolean isBound() { try { Object bindaddr = impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return false; } return true; } | public boolean isBound() { try { Object bindaddr = impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return false; } return true; } | 16,754 |
public boolean isClosed() { return closed; } | public boolean isClosed() { return impl == null; } | 16,755 |
public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); } | public void setReceiveBufferSize (int size) throws SocketException { if (impl == null) throw new SocketException ("Not connected"); if (size <= 0) throw new IllegalArgumentException ("SO_RCVBUF value must be > 0"); impl.setOption (SocketOptions.SO_RCVBUF, new Integer (size)); } | 16,756 |
public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); } | public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); } | 16,757 |
public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption (SocketOptions.SO_REUSEADDR, new Boolean (on)); } | public void setReuseAddress (boolean on) throws SocketException { if (impl == null) throw new SocketException ("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); } | 16,758 |
public String toString () { return "ServerSocket" + impl.toString(); } | public String toString () { if (! isBound()) return "ServerSocket[unbound]"; return ("ServerSocket[addr=" + getInetAddress() + ",port=" + impl.getPort() + ",localport=" + impl.getLocalPort() + "]"); } | 16,760 |
public String toString() { return "[addr=" + address + ",port=" + port + ",localport=" + localport + "]"; } | public String toString() { return "[addr=" + address + ",port=" + port + ",localport=" + localport + "]"; } | 16,761 |
public final Class getCategory() { return Fidelity.class; } | public Class getCategory() { return Fidelity.class; } | 16,762 |
public final String getName() { return "fidelity"; } | public String getName() { return "fidelity"; } | 16,763 |
public UndoManager() { // TODO } // UndoManager() | public UndoManager() { // TODO } // UndoManager() | 16,764 |
public synchronized boolean addEdit(UndoableEdit value0) { return false; // TODO } // addEdit() | public synchronized boolean addEdit(UndoableEdit value0) { return false; // TODO } // addEdit() | 16,765 |
public synchronized boolean canRedo() { return false; // TODO } // canRedo() | public synchronized boolean canRedo() { return false; // TODO } // canRedo() | 16,766 |
public synchronized boolean canUndo() { return false; // TODO } // canUndo() | public synchronized boolean canUndo() { return false; // TODO } // canUndo() | 16,767 |
public synchronized boolean canUndoOrRedo() { return false; // TODO } // canUndoOrRedo() | public synchronized boolean canUndoOrRedo() { return false; // TODO } // canUndoOrRedo() | 16,768 |
public synchronized void discardAllEdits() { // TODO } // discardAllEdits() | public synchronized void discardAllEdits() { // TODO } // discardAllEdits() | 16,769 |
protected UndoableEdit editToBeRedone() { return null; // TODO } // editToBeRedone() | protected UndoableEdit editToBeRedone() { return null; // TODO } // editToBeRedone() | 16,770 |
protected UndoableEdit editToBeUndone() { return null; // TODO } // editToBeUndone() | protected UndoableEdit editToBeUndone() { return null; // TODO } // editToBeUndone() | 16,771 |
public synchronized void end() { // TODO } // end() | public synchronized void end() { // TODO } // end() | 16,772 |
public synchronized int getLimit() { return 0; // TODO } // getLimit() | public synchronized int getLimit() { return 0; // TODO } // getLimit() | 16,773 |
public synchronized String getRedoPresentationName() { return null; // TODO } // getRedoPresentationName() | public synchronized String getRedoPresentationName() { return null; // TODO } // getRedoPresentationName() | 16,774 |
public synchronized String getUndoOrRedoPresentationName() { return null; // TODO } // getUndoOrRedoPresentationName() | public synchronized String getUndoOrRedoPresentationName() { return null; // TODO } // getUndoOrRedoPresentationName() | 16,775 |
public synchronized String getUndoPresentationName() { return null; // TODO } // getUndoPresentationName() | public synchronized String getUndoPresentationName() { return null; // TODO } // getUndoPresentationName() | 16,776 |
public synchronized void redo() throws CannotRedoException { // TODO } // redo() | public synchronized void redo() throws CannotRedoException { // TODO } // redo() | 16,777 |
protected void redoTo(UndoableEdit value0) throws CannotRedoException { // TODO } // redoTo() | protected void redoTo(UndoableEdit value0) throws CannotRedoException { // TODO } // redoTo() | 16,778 |
public synchronized void setLimit(int value0) { // TODO } // setLimit() | public synchronized void setLimit(int value0) { // TODO } // setLimit() | 16,779 |
public String toString() { return null; // TODO } // toString() | public String toString() { return null; // TODO } // toString() | 16,780 |
protected void trimEdits(int value0, int value1) { // TODO } // trimEdits() | protected void trimEdits(int value0, int value1) { // TODO } // trimEdits() | 16,781 |
protected void trimForLimit() { // TODO } // trimForLimit() | protected void trimForLimit() { // TODO } // trimForLimit() | 16,782 |
public synchronized void undo() throws CannotUndoException { // TODO } // undo() | public synchronized void undo() throws CannotUndoException { // TODO } // undo() | 16,783 |
public synchronized void undoOrRedo() throws CannotRedoException, CannotUndoException { // TODO } // undoOrRedo() | public synchronized void undoOrRedo() throws CannotRedoException, CannotUndoException { // TODO } // undoOrRedo() | 16,784 |
protected void undoTo(UndoableEdit value0) throws CannotUndoException { // TODO } // undoTo() | protected void undoTo(UndoableEdit value0) throws CannotUndoException { // TODO } // undoTo() | 16,785 |
public void undoableEditHappened(UndoableEditEvent value0) { // TODO } // undoableEditHappened() | public void undoableEditHappened(UndoableEditEvent value0) { // TODO } // undoableEditHappened() | 16,786 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit edit) { UndoableEdit last; // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edi... | 16,787 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables if (!inProgress) return false; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(an... | 16,788 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; last = lastEdit(); // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); } ... | 16,789 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit if (last == null) { edits.add(edit); return true; } // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false... | 16,790 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (last.addEdit(edit)) return true; if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.a... | 16,791 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | 16,792 |
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); ... | 16,793 |
public boolean canRedo() { if (isInProgress() == true || super.canRedo() == false) { return false; } return true; } // canRedo() | public boolean canRedo() { if (isInProgress() == true || super.canRedo() == false) { return false; } return true; } // canRedo() | 16,794 |
public boolean canUndo() { if (isInProgress() == true || super.canUndo() == false) { return false; } return true; } // canUndo() | public boolean canUndo() { if (isInProgress() == true || super.canUndo() == false) { return false; } return true; } // canUndo() | 16,795 |
public String getRedoPresentationName() { if (edits.size() == 0) { return super.getRedoPresentationName(); } else { return lastEdit().getRedoPresentationName(); } } // getRedoPresentationName() | public String getRedoPresentationName() { if (edits.size() == 0) { return super.getRedoPresentationName(); } else { return lastEdit().getRedoPresentationName(); } } // getRedoPresentationName() | 16,796 |
public String getUndoPresentationName() { if (edits.size() == 0) { return super.getUndoPresentationName(); } else { return lastEdit().getUndoPresentationName(); } } // getUndoPresentationName() | public String getUndoPresentationName() { if (edits.size() == 0) { return super.getUndoPresentationName(); } else { return lastEdit().getUndoPresentationName(); } } // getUndoPresentationName() | 16,797 |
public void redo() throws CannotRedoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); current.redo(); } // for: index } // redo() | public void redo() throws CannotRedoException { super.redo(); // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); current.redo(); } // for: index } // redo() | 16,798 |
public void redo() throws CannotRedoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); current.redo(); } // for: index } // redo() | public void redo() throws CannotRedoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = 0; index < edits.size(); index++) { current = (UndoableEdit) edits.elementAt(index); current.redo(); } // for: index } // redo() | 16,799 |
public String toString() { return null; // TODO } // toString() | public String toString() { return null; // TODO } // toString() | 16,800 |
public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo() | public void undo() throws CannotUndoException { super.undo(); // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo() | 16,801 |
public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo() | public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo() | 16,802 |
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams... | public boolean equals(Object obj) if (obj == null) return false; } if (!(obj instanceof DSAKey)) return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams().... | 16,804 |
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams... | public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams... | 16,805 |
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams... | public boolean equals(Object obj) { if (obj == null) { return false; if (!(obj instanceof DSAKey)) { return false; DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams()... | 16,806 |
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ... | public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ... | 16,807 |
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ... | public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ... | 16,808 |
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, true); } | public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false); } | 16,809 |
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException ignored) { ... | public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException e) { ... | 16,810 |
public AccessibleRelationSet getAccessibleRelationSet() { return null; // TODO } | public AccessibleRelationSet getAccessibleRelationSet() { return super.getAccessibleRelationSet(); // TODO } | 16,811 |
public static Image createDisabledImage(Image src) { return Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(src.getSource(), new GrayFilter(false, 100))); } | public static Image createDisabledImage(Image src) { return Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(src.getSource(), new GrayFilter(false, 100))); } | 16,812 |
public ImageIcon(Image image) { this(image, null); } | public ImageIcon(Image image) { this(image, null); } | 16,813 |
public static char toUpperCase(char ch) { // Signedness doesn't matter, as result is cast back to char. return (char) (ch + upper[readChar(ch) >> 7]); } | public static char toUpperCase(char ch) { // Signedness doesn't matter, as result is cast back to char. return (char) (upper[0][readCodePoint((int)ch) >>> 7] + ch); } | 16,814 |
public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } | public BAD_INV_ORDER(String message) { super(reason, minor, completed); } | 16,815 |
public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } | public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed) { super(message, 0, CompletionStatus.COMPLETED_NO); } | 16,816 |
public SampleModel(int dataType, int w, int h, int numBands) { if ((w <= 0) || (h <= 0)) throw new IllegalArgumentException(); // FIXME: How can an int be greater than Integer.MAX_VALUE? // FIXME: How do we identify an unsupported data type? this.dataType = dataType; this.width = w; this.height = h; this.numB... | public SampleModel(int dataType, int w, int h, int numBands) { if ((w <= 0) || (h <= 0)) throw new IllegalArgumentException((w <= 0 ? " width<=0" : " width is ok") +(h <= 0 ? " height<=0" : " height is ok")); // FIXME: How can an int be greater than Integer.MAX_VALUE? // FIXME: How do we identify an unsupported d... | 16,817 |
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int b = 0; b < numBands; b++) { setSample(x, y, b, iArray[b], data); } } | public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int b = 0; b < numBands; b++) { setSample(x, y, b, iArray[b], data); } } | 16,818 |
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { //int size = w * h; int inOffset = 0; for (int yy = y; yy < (y + h); yy++) for (int xx = x; xx < (x + w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; //int size = w * h; int inOffset = 0; for (int yy = y; yy < (y + h); yy++) for (int xx = x; xx < (x + w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | 16,819 |
private static Monitor installInflatedLock(Object k) { Monitor m = null; Word monAddr = null; final Address kPtr = ObjectReference.fromObject(k).toAddress(); final Address statusPtr = kPtr.add(ObjectLayout.FLAGS_SLOT * Address.size()); for (;;) { final Wo... | private static Monitor installInflatedLock(Object k) { Monitor m = null; Word monAddr = null; final Address kPtr = ObjectReference.fromObject(k).toAddress(); final Address statusPtr = kPtr.add(ObjectLayout.FLAGS_SLOT * Address.size()); for (;;) { final Wo... | 16,820 |
public IllegalMonitorStateException(String s) { super(s); } | public IllegalMonitorStateException() { super(s); } | 16,821 |
public IllegalMonitorStateException(String s) { super(s); } | public IllegalMonitorStateException(String s) { } | 16,822 |
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ... | public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ... | 16,823 |
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ... | public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount <= 0) { lockCount = 0; exMsg = "Moni... | 16,824 |
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ... | public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ... | 16,825 |
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | 16,826 |
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | 16,827 |
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | 16,828 |
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els... | 16,829 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,830 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,831 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,832 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,833 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,834 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,836 |
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i... | 16,837 |
TransformerImpl(TransformerFactoryImpl factory, Stylesheet stylesheet, Properties outputProperties) throws TransformerConfigurationException { this.factory = factory; uriResolver = factory.userResolver; errorListener = factory.userListener; this.stylesheet = styleshee... | TransformerImpl(TransformerFactoryImpl factory, Stylesheet stylesheet, Properties outputProperties) throws TransformerConfigurationException { this.factory = factory; uriResolver = factory.userResolver; errorListener = factory.userListener; this.stylesheet = styleshee... | 16,838 |
public void clearParameters() { if (stylesheet != null) { stylesheet.bindings.pop(false); stylesheet.bindings.push(false); } } | public void clearParameters() { if (stylesheet != null) { stylesheet.bindings.pop(false); stylesheet.bindings.push(false); } } | 16,839 |
public Object getParameter(String name) { if (stylesheet != null) { return stylesheet.bindings.get(name, null, 1, 1); } return null; } | public Object getParameter(String name) { if (stylesheet != null) { return stylesheet.bindings.get(new QName(null, name), null, 1, 1); } return null; } | 16,840 |
public void setParameter(String name, Object value) { if (stylesheet != null) { stylesheet.bindings.set(name, value, false); } } | public void setParameter(String name, Object value) { if (stylesheet != null) { stylesheet.bindings.set(new QName(null, name), value, Bindings.PARAM); } } | 16,841 |
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | void push(int type) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | 16,842 |
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | void push(boolean global) { switch (type) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | 16,843 |
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } } | 16,844 |
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } } | void pop(int type) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } } | 16,846 |
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } } | void pop(boolean global) { switch (type) { variables.removeFirst(); } else { parameters.removeFirst(); } } | 16,847 |
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } } | void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } } | 16,848 |
public Object get(String name, Node context, int pos, int len) { //System.err.println("bindings.get: "+name); //System.err.println("\t"+toString()); Object ret = null; for (Iterator i = variables.iterator(); i.hasNext() && ret == null; ) { Map vctx = (Map) i.next(); ret = vctx.get(name... | public Object get(QName name, Node context, int pos, int len) { //System.err.println("bindings.get: "+name); //System.err.println("\t"+toString()); Object ret = null; for (Iterator i = variables.iterator(); i.hasNext() && ret == null; ) { Map vctx = (Map) i.next(); ret = vctx.get(name)... | 16,850 |
public synchronized void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicM... | public synchronized void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.SimpleEntry) { AbstractMap.BasicMap... | 16,851 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.