bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public TextHitInfo getOffsetHit(int offset) { return new TextHitInfo(); }
public TextHitInfo getOffsetHit(int offset) { return new TextHitInfo (charIndex + offset, leadingEdge); }
26,609
public TextHitInfo getOtherHit() { return new TextHitInfo(); }
public TextHitInfo getOtherHit() { return (leadingEdge ? trailing (charIndex - 1) : leading (charIndex + 1)); }
26,610
public int hashCode() { return getCharIndex(); }
public int hashCode() { return charIndex; }
26,611
public boolean isLeadingEdge() { return false; }
public boolean isLeadingEdge() { return leadingEdge; }
26,612
public static TextHitInfo leading(int charIndex) { return new TextHitInfo(); }
public static TextHitInfo leading(int charIndex) { return new TextHitInfo (charIndex, true); }
26,613
public String toString() { return ""; }
public String toString() { return "TextHitInfo[" + charIndex + (leadingEdge ? "L" : "T" ) + "]"; }
26,614
public static TextHitInfo trailing(int charIndex) { return new TextHitInfo(); }
public static TextHitInfo trailing(int charIndex) { return new TextHitInfo (charIndex, false); }
26,615
protected EditorKit createDefaultEditorKit() { return new PlainEditorKit(); }
protected EditorKit createDefaultEditorKit() { return new PlainEditorKit(); }
26,617
EditorKit getEditorKit() { return kit; }
EditorKit getEditorKit() { return kit; }
26,618
public String getUIClassID() { return "EditorPaneUI"; }
public String getUIClassID() { return "EditorPaneUI"; }
26,619
void insertString(int offset, String str, AttributeSet a);
void insertString(int offset, String str, AttributeSet a);
26,620
protected String paramString() { return "JEditorPane"; }
protected String paramString() { return "JEditorPane"; }
26,621
void replaceSelection(String content) { //Replaces the currently selected content with new content represented by the given string. }
public void replaceSelection(String content) { //Replaces the currently selected content with new content represented by the given string. }
26,622
void replaceSelection(String content) { //Replaces the currently selected content with new content represented by the given string. }
voidreplaceSelection(Stringcontent){ //Replacesthecurrentlyselectedcontentwithnewcontentrepresentedbythegivenstring.}
26,623
void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
26,624
public int getDropAction() { return dropAction & targetActions & ((DragSourceContext) source).getSourceActions(); }
public int getDropAction() { return dropAction & targetActions & ((DragSourceContext) source).getSourceActions(); }
26,625
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
26,626
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
public StandardVGAIO(ResourceOwner owner, MemoryResource mem) throws ResourceNotFreeException { try { ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); vgaIO = rm.claimIOResource(owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColo...
26,627
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
26,628
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
public final void copyArea(int srcX, int srcY, int w, int h, int dstX, int dstY) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - dstX); h = Math.min(h, h...
26,629
public final void drawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int w, int h, int bgColor) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - ...
public final void drawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int w, int h, int bgColor) { if ((dstY < this.height) && (dstX < this.width)) { if (dstX < 0) { srcX -= dstX; w += dstX; dstX = 0; } if (dstY < 0) { srcY -= dstY; h += dstY; dstY = 0; } w = Math.min(w, width - ...
26,630
public final void drawLine(int x, int y, int w, int color, int mode) { try { if ((y >= 0) && (y < height) && (x < width)) { if (x < 0) { w += x; x = 0; } w = Math.min(w, width - x); if (w > 0) { doDrawLine(x, y, w, color, mode); } } } catch (IndexOutOfBoundsException ex) { log.error(...
public final void drawLine(int x, int y, int w, int color, int mode) { try { if ((y >= 0) && (y < height) && (x < width)) { if (x < 0) { w += x; x = 0; } w = Math.min(w, width - x); if (w > 0) { doDrawLine(x, y, w, color, mode); } } } catch (IndexOutOfBoundsException ex) { log.error(...
26,631
public final void drawPixels(int x, int y, int count, int color, int mode) { try { if ((x >= 0) && (x < width) && (y >= 0) && (y < height)) { doDrawPixels(x, y, count, color, mode); } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", width=" + width + ", heig...
public final void drawPixels(int x, int y, int count, int color, int mode) { try { if ((x >= 0) && (x < width) && (y >= 0) && (y < height)) { doDrawPixels(x, y, count, color, mode); } } catch (IndexOutOfBoundsException ex) { log.error("Index out of bounds: x=" + x + ", y=" + y + ", width=" + width + ", heig...
26,632
public Identity(String name) { this.name = name; this.scope = null; }
protected Identity() { this.name = name; this.scope = null; }
26,633
public Identity(String name) { this.name = name; this.scope = null; }
public Identity(String name) { this.name = name; this.scope = null; }
26,634
public GeneralSecurityException(String msg) { super(msg); }
public GeneralSecurityException() { super(msg); }
26,635
public GeneralSecurityException(String msg) { super(msg); }
public GeneralSecurityException(String msg) { }
26,636
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
26,637
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child....
26,638
public int getViewIndex(int pos, Position.Bias b) { return -1; }
public int getViewIndex(float x, float y, Shape allocation) { return -1; }
26,639
public BadLocationException (String str, int offset) { super (str); this.offset = offset; }
public BadLocationException(String str, int offset) { super (str); this.offset = offset; }
26,640
public BadLocationException (String str, int offset) { super (str); this.offset = offset; }
public BadLocationException (String str, int offset) { super(str); this.offset = offset; }
26,641
public void assign(DynAny from) throws TypeMismatch { checkType(official_type, from.type()); if (from instanceof gnuDynFixed) { gnuDynFixed other = (gnuDynFixed) from; value = other.value; } else if (from instanceof DynFixedOperations) { value = new BigDecima...
public void assign(DynAny from) throws TypeMismatch { checkType(official_type, from.type()); if (from instanceof gnuDynFixed) { gnuDynFixed other = (gnuDynFixed) from; value = other.value; } else if (from instanceof DynFixedOperations) { value = new BigDecima...
26,643
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { try { checkType(official_type, an_any.type()); value = an_any.extract_fixed(); valueChanged(); } catch (BAD_OPERATION e) { InvalidValue t = new InvalidValue(); t.initCause(e); ...
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { try { checkType(official_type, an_any.type()); value = an_any.extract_fixed(); valueChanged(); } catch (BAD_OPERATION e) { InvalidValue t = new InvalidValue(); t.initCause(e); ...
26,644
public gnuDynFixed(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) { super(oType, aType, aFactory, anOrb); try { digits = final_type.fixed_digits(); scale = final_type.fixed_scale(); } catch (Exception e) { thr...
public gnuDynFixed(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) { super(oType, aType, aFactory, anOrb); try { digits = final_type.fixed_digits(); scale = final_type.fixed_scale(); } catch (Exception e) { thr...
26,645
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
public BigDecimal (BigInteger num) { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while (point < len) { cha...
26,646
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while...
26,647
public static boolean isDigit(char ch) { return getType(ch) == DECIMAL_DIGIT_NUMBER; }
public static boolean isDigit(char ch) { return isDigit((int)ch); }
26,648
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);...
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);...
26,649
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
ServerSocket(SocketImpl impl) throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
26,650
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
26,651
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); impl.create(true); }
public ServerSocket() throws IOException { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); this.impl = impl; this.impl.create(true); }
26,652
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
public Socket accept() throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
26,653
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
26,654
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
26,655
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
26,656
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); return s; }
public Socket accept () throws IOException { if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkListen (impl.getLocalPort ()); Socket s = new Socket(); implAccept (s); throw e; } ...
26,657
public void bind (SocketAddress endpoint) throws IOException { bind (endpoint, 50); }
public void bind (SocketAddress endpoint) throws IOException { bind (endpoint, 50); }
26,658
public void bind (SocketAddress endpoint) throws IOException { bind (endpoint, 50); }
public void bind (SocketAddress endpoint) throws IOException { bind(endpoint, 50); }
26,659
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
public void close() throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
26,660
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
26,661
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
26,662
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); closed = true; }
public void close () throws IOException { if (impl != null) impl.close (); if (ch != null) ch.close (); if (getChannel() != null) getChannel().close(); }
26,663
public ServerSocketChannel getChannel() { return ch; }
public ServerSocketChannel getChannel() { return null; }
26,664
public InetAddress getInetAddress() { try { return (InetAddress) impl.getOption (SocketOptions.SO_BINDADDR); } catch (SocketException e) { return null; } }
public InetAddress getInetAddress() { try { return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { return null; } }
26,665
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; }
26,668
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; }
26,669
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...
26,670
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...
26,671
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)...
26,672
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...
26,673
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...
26,674
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"); ...
26,675
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"); ...
26,676
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"); ...
26,677
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"); ...
26,678
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"); ...
26,679
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
public int getSoTimeout() throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
26,680
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (! (timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
26,681
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer)timeout).intValue(); }
public int getSoTimeout () throws IOException { Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (!(timeout instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) timeout).intValue(); }
26,682
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); }
26,683
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...
26,684
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; }
26,685
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; }
26,686
public boolean isClosed() { return closed; }
public boolean isClosed() { return impl == null; }
26,687
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)); }
26,688
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)); }
26,689
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)); }
26,690
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)); }
26,691
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)); }
26,692
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)); }
26,693
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)); }
26,694
public void setSoTimeout (int timeout) throws SocketException { if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
public void setSoTimeout(int timeout) throws SocketException { if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
26,695
public static synchronized void setSocketFactory (SocketImplFactory fac) throws IOException { factory = fac; }
public static synchronized void setSocketFactory(SocketImplFactory fac) throws IOException { factory = fac; }
26,697
public String toString () { return "ServerSocket" + impl.toString(); }
public String toString() { return "ServerSocket" + impl.toString(); }
26,698
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() + "]"); }
26,699
public String toString() { return "[addr=" + address + ",port=" + port + ",localport=" + localport + "]"; }
public String toString() { return "[addr=" + address + ",port=" + port + ",localport=" + localport + "]"; }
26,700
public final Class getCategory() { return Fidelity.class; }
public Class getCategory() { return Fidelity.class; }
26,701
public final String getName() { return "fidelity"; }
public String getName() { return "fidelity"; }
26,702
public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); int max = 0; try { max = stream.available(); } catch ( IOException ioe ) { // Behave like the JDK here. } monitor = new Prog...
public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); int max = 0; try { max = stream.available(); } catch ( IOException ioe ) { // Behave like the JDK here. } monitor = new Prog...
26,703
public UndoManager() { // TODO } // UndoManager()
public UndoManager() { // TODO } // UndoManager()
26,704
public synchronized boolean addEdit(UndoableEdit value0) { return false; // TODO } // addEdit()
public synchronized boolean addEdit(UndoableEdit value0) { return false; // TODO } // addEdit()
26,705
public synchronized boolean canRedo() { return false; // TODO } // canRedo()
public synchronized boolean canRedo() { return false; // TODO } // canRedo()
26,706
public synchronized boolean canUndo() { return false; // TODO } // canUndo()
public synchronized boolean canUndo() { return false; // TODO } // canUndo()
26,707
public synchronized boolean canUndoOrRedo() { return false; // TODO } // canUndoOrRedo()
public synchronized boolean canUndoOrRedo() { return false; // TODO } // canUndoOrRedo()
26,708
public synchronized void discardAllEdits() { // TODO } // discardAllEdits()
public synchronized void discardAllEdits() { // TODO } // discardAllEdits()
26,709
protected UndoableEdit editToBeRedone() { return null; // TODO } // editToBeRedone()
protected UndoableEdit editToBeRedone() { return null; // TODO } // editToBeRedone()
26,710
protected UndoableEdit editToBeUndone() { return null; // TODO } // editToBeUndone()
protected UndoableEdit editToBeUndone() { return null; // TODO } // editToBeUndone()
26,711
public synchronized void end() { // TODO } // end()
public synchronized void end() { // TODO } // end()
26,712
public synchronized int getLimit() { return 0; // TODO } // getLimit()
public synchronized int getLimit() { return 0; // TODO } // getLimit()
26,713