bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; }
public TableModelEvent(TableModel source) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; }
16,638
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; }
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) { super(source); this.firstRow = firstRow; this.lastRow = lastRow; this.column = column; this.type = type; }
16,639
public boolean isCS_sRGB() { return false; }
public boolean isCS_sRGB() { return type == CS_sRGB; }
16,641
public static RemoteStub exportObject(Remote obj) throws RemoteException { UnicastServerRef sref = (UnicastServerRef)((RemoteObject)obj).getRef(); return (sref.exportObject(obj));}
public static RemoteStub exportObject(Remote obj) throws RemoteException { UnicastServerRef sref = (UnicastServerRef)((RemoteObject)obj).getRef(); return (sref.exportObject(obj));}
16,642
protected RemoteServer(RemoteRef ref) { super(ref);}
protected RemoteServer(RemoteRef ref) { super(ref);}
16,643
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
16,645
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
16,646
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
16,647
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); return d; }
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); return d; }
16,648
public static void setDefaultLookAndFeelDecorated(boolean d) { defaultLookAndFeelDecorated = d; }
public static void setDefaultLookAndFeelDecorated(boolean decorated) { defaultLookAndFeelDecorated = d; }
16,649
public static void setDefaultLookAndFeelDecorated(boolean d) { defaultLookAndFeelDecorated = d; }
public static void setDefaultLookAndFeelDecorated(boolean d) { defaultLookAndFeelDecorated = decorated; }
16,650
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;}
Frame(){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;}
16,651
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;}
Frame(String title){ super(); this.title = title; // Top-level frames are initially invisible. visible = false;}
16,652
protected String getPropertyPrefix() { return null; }
protected String getPropertyPrefix() { return "MenuItem"; }
16,653
public void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.SIGNER_KEY, privateKey); try { adaptee.setupSign(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyException(S...
public void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.SIGNER_KEY, privateKey); try { adaptee.setupSign(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyException(x...
16,654
public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.VERIFIER_KEY, publicKey); try { adaptee.setupVerify(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyExceptio...
public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { HashMap attributes = new HashMap(); attributes.put(BaseSignature.VERIFIER_KEY, publicKey); try { adaptee.setupVerify(attributes); } catch (IllegalArgumentException x) { throw new InvalidKeyExceptio...
16,655
public byte[] engineSign() throws SignatureException { Object signature = null; try { signature = adaptee.sign(); } catch (IllegalStateException x) { throw new SignatureException(String.valueOf(x)); } byte[] result = codec.encodeSignature(signature); return result; }
public byte[] engineSign() throws SignatureException { Object signature = null; try { signature = adaptee.sign(); } catch (IllegalStateException x) { throw new SignatureException(x.getMessage(), x); } byte[] result = codec.encodeSignature(signature); return result; }
16,656
public void engineUpdate(byte b) throws SignatureException { try { adaptee.update(b); } catch (IllegalStateException x) { throw new SignatureException(String.valueOf(x)); } }
public void engineUpdate(byte b) throws SignatureException { try { adaptee.update(b); } catch (IllegalStateException x) { throw new SignatureException(x.getMessage(), x); } }
16,657
public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ...
public boolean engineVerify(byte[] sigBytes) throws SignatureException { if (Configuration.DEBUG) log.entering(this.getClass().getName(), "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (Ill...
16,658
public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ...
public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ...
16,659
public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ...
public boolean engineVerify(byte[] sigBytes) throws SignatureException { log.entering("SignatureAdapter", "engineVerify"); Object signature = codec.decodeSignature(sigBytes); boolean result = false; try { result = adaptee.verify(signature); } catch (IllegalStateException x) { ...
16,660
public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; } ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); }...
public static final ISignature getInstance(String ssa) if (ssa == null) return null; } ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) result = new DSSSignature(); } ...
16,661
public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; } ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); }...
public static final ISignature getInstance(String ssa) { if (ssa == null) { return null; ssa = ssa.trim(); ssa = ssa.toLowerCase(); ISignature result = null; if (ssa.equalsIgnoreCase(Registry.DSA_SIG) || ssa.equals(Registry.DSS_SIG)) { result = new DSSSignature(); ...
16,662
public final Class getCategory() { return ReferenceUriSchemesSupported.class; }
public Class getCategory() { return ReferenceUriSchemesSupported.class; }
16,663
public final String getName() { return "reference-uri-schemes-supported"; }
public String getName() { return "reference-uri-schemes-supported"; }
16,664
public boolean isSelected() { return false; }
public boolean isSelected() { return selectionModel.isSelected(); }
16,666
public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol...
public DecimalFormatSymbols () { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol", "$"); ...
16,667
public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol...
public DecimalFormatSymbols (Locale loc) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) { res = null; } currencySymbol = safeGetString (res, "currencySymbol...
16,668
public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { this.symbols = symbols; applyPattern (pattern); }
public DecimalFormat () { this.symbols = symbols; applyPattern (pattern); }
16,669
public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { this.symbols = symbols; applyPattern (pattern); }
public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { this.symbols = symbols; applyPattern (pattern); }
16,670
public final String format (double number) { StringBuffer sbuf = new StringBuffer(50); format (number, sbuf, null); return sbuf.toString(); }
public final String format (long number) { StringBuffer sbuf = new StringBuffer(50); format (number, sbuf, null); return sbuf.toString(); }
16,671
public abstract Document parse(InputSource source) throws SAXException, IOException;
public abstract Document parse(InputSource source) throws SAXException, IOException;
16,672
public NoSuchElementException(String detail) { super(detail); }
public NoSuchElementException(String detail) { super(detail); }
16,673
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
public void run() { try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
16,674
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
public void run() { running = true; try { synchronized (queueLock) { try { queueLock.wait(initialDelay); } catch (InterruptedException e) { } if (!running) return; queueEvent(); if (repeats) while (running) { try ...
16,675
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { queueLock.wait(delay); } catch (InterruptedExcep...
16,676
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
16,677
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
public void run() { running = true; try { sleep(initialDelay); queueEvent(); if (repeats) while (running) { try { sleep(delay); } catch (InterruptedException e) ...
16,678
public void start() { if (isRunning()) return; waker = new Waker(); waker.start(); }
public void start() { synchronized (queueLock) { if (waker != null) return; waker = new Waker(); waker.start(); }
16,679
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
public void stop() { running = false; if (waker != null) waker.interrupt(); synchronized (queueLock) { queue = 0; } }
16,681
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 2.0f : 4.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = byteOrder; this.us...
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 4.0f : 2.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = byteOrder; this.us...
16,683
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 2.0f : 4.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = byteOrder; this.us...
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) { super (cs, 2.0f, useByteOrderMark ? 2.0f : 4.0f, byteOrder == BIG_ENDIAN ? new byte[] { (byte) 0xFF, (byte) 0xFD } : new byte[] { (byte) 0xFD, (byte) 0xFF }); this.byteOrder = (byteOrder == BIG_END...
16,684
public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); }
public boolean equals(Object obj) { if (obj instanceof ObjID) { return (true); } return (false); }
16,685
public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); }
public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { ObjID that = (ObjID) obj; return that.objNum == objNum && eq(that.space, space); } return (false); }
16,686
public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } return (false); }
public boolean equals(Object obj) { if (obj instanceof ObjID && this.objNum == ((ObjID) obj).objNum) { return (true); } else return false; }
16,687
public int hashCode() { return ((int) objNum); }
public int hashCode() { return space == null ? (int) objNum : space.hashCode() ^ (int) objNum; }
16,688
public String toString() { return ("[objNum: " + objNum + ", " + space + "]"); }
public String toString() { return (objNum + ":" + space); }
16,689
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement rootElement = (BranchElement) createBranchElement(null, null); Element[] lines = new Element[1]; lines[0] = createLeafElement(rootElement, null, 0, 1); rootElement.replace(0, 0, lines); return rootElement; }
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement rootElement = (BranchElement) createBranchElement(null, null); Element[] lines = new Element[1]; lines[0] = createLeafElement(rootElement, null, 0, 1); rootElement.replace(0, 0, lines); return rootElement; }
16,690
public UnknownEncoding(String why) { super(why); }
public UnknownEncoding() { super(why); }
16,691
public UnknownEncoding(String why) { super(why); }
public UnknownEncoding(String why) { }
16,692
public static Component getRoot(Component comp) { Applet app = null; Window win = null; while (comp != null) { if (win == null && comp instanceof Window) win = (Window) comp; else if (comp instanceof Applet) app = (Applet) comp; comp = comp.getParent(); } ...
public static Component getRoot(Component comp) { Applet app = null; Window win = null; while (comp != null) { if (win == null && comp instanceof Window) win = (Window) comp; if (comp instanceof Applet) app = (Applet) comp; comp = comp.getParent(); } if (...
16,693
protected byte[] getResult() { // apply inverse mu to the context byte[] result = new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), ...
protected byte[] getResult() { // apply inverse mu to the context return new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), (byte)(H1...
16,694
protected byte[] getResult() { // apply inverse mu to the context byte[] result = new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), ...
protected byte[] getResult() { // apply inverse mu to the context byte[] result = new byte[] { (byte)(H0 >>> 56), (byte)(H0 >>> 48), (byte)(H0 >>> 40), (byte)(H0 >>> 32), (byte)(H0 >>> 24), (byte)(H0 >>> 16), (byte)(H0 >>> 8), (byte) H0, (byte)(H1 >>> 56), (byte)(H1 >>> 48), (byte)(H1 >>> 40), ...
16,695
public boolean selfTest() { if (valid == null) valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Whirlpool().digest()))); return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { String d = Util.toString(new Whirlpool().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); }
16,696
public static String toString(long n) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); }
public static String toString(byte[] ba) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); }
16,697
public static String toString(long n) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); }
public static String toString(long n) { char[] b = new char[16]; for (int i = 15; i >= 0; i--) { b[i] = HEX_DIGITS[(int) (n & 0x0FL)]; n >>>= 4; } return new String(b); }
16,698
public abstract void addPropertyChangeListener(PropertyChangeListener listener);
void addPropertyChangeListener(PropertyChangeListener listener);
16,699
public abstract String getAsText();
String getAsText();
16,700
public abstract java.awt.Component getCustomEditor();
java.awt.Component getCustomEditor();
16,701
public abstract String getJavaInitializationString();
String getJavaInitializationString();
16,702
public abstract String[] getTags();
String[] getTags();
16,703
public abstract Object getValue();
Object getValue();
16,704
public abstract boolean isPaintable();
boolean isPaintable();
16,705
public abstract void paintValue(java.awt.Graphics g, java.awt.Rectangle bounds);
void paintValue(java.awt.Graphics g, java.awt.Rectangle bounds);
16,706
public abstract void removePropertyChangeListener(PropertyChangeListener listener);
void removePropertyChangeListener(PropertyChangeListener listener);
16,707
public abstract void setAsText(String text) throws IllegalArgumentException;
void setAsText(String text) throws IllegalArgumentException;
16,708
public abstract void setValue(Object value);
void setValue(Object value);
16,709
public abstract boolean supportsCustomEditor();
boolean supportsCustomEditor();
16,710
protected AssemblerModule(final Map labels) { this.labels = labels; }
protected AssemblerModule(final Map labels, final Map constants) { this.labels = labels; }
16,711
public static TextHitInfo afterOffset(int offset) { return new TextHitInfo(); }
public static TextHitInfo afterOffset(int offset) { return new TextHitInfo (offset, true); }
16,713
public static TextHitInfo beforeOffset(int offset) { return new TextHitInfo(); }
public static TextHitInfo beforeOffset(int offset) { return new TextHitInfo (offset, false); }
16,714
public int getCharIndex() { return -1; }
public int getCharIndex() { return charIndex; }
16,715
public int getInsertionIndex() { return -1; }
public int getInsertionIndex() { return (leadingEdge ? charIndex : charIndex + 1); }
16,716
public TextHitInfo getOffsetHit(int offset) { return new TextHitInfo(); }
public TextHitInfo getOffsetHit(int offset) { return new TextHitInfo (charIndex + offset, leadingEdge); }
16,717
public TextHitInfo getOtherHit() { return new TextHitInfo(); }
public TextHitInfo getOtherHit() { return (leadingEdge ? trailing (charIndex - 1) : leading (charIndex + 1)); }
16,718
public int hashCode() { return getCharIndex(); }
public int hashCode() { return charIndex; }
16,719
public boolean isLeadingEdge() { return false; }
public boolean isLeadingEdge() { return leadingEdge; }
16,720
public static TextHitInfo leading(int charIndex) { return new TextHitInfo(); }
public static TextHitInfo leading(int charIndex) { return new TextHitInfo (charIndex, true); }
16,721
public String toString() { return ""; }
public String toString() { return "TextHitInfo[" + charIndex + (leadingEdge ? "L" : "T" ) + "]"; }
16,722
public static TextHitInfo trailing(int charIndex) { return new TextHitInfo(); }
public static TextHitInfo trailing(int charIndex) { return new TextHitInfo (charIndex, false); }
16,723
EditorKit getEditorKit() { return kit; }
EditorKit getEditorKit() { return kit; }
16,725
void insertString(int offset, String str, AttributeSet a);
void insertString(int offset, String str, AttributeSet a) throws BadLocationException;
16,726
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. }
16,727
void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
public void setEditorKit(EditorKit kit) { this.kit = kit; invalidate(); repaint(); }
16,728
public int getDropAction() { return dropAction & targetActions & ((DragSourceContext) source).getSourceActions(); }
public int getDropAction() { return dropAction & targetActions & ((DragSourceContext) source).getSourceActions(); }
16,729
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, DriverException { 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; curre...
16,730
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 = claimPorts(rm, owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1); this.mem = mem; current_mode = getColorMod...
16,731
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 - ...
16,732
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....
16,733
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....
16,734
public static boolean isDigit(char ch) { return getType(ch) == DECIMAL_DIGIT_NUMBER; }
public static boolean isDigit(char ch) { return isDigit((int)ch); }
16,736
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);...
16,737
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; }
16,738
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; }
16,739
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; }
16,740
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; } ...
16,741
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; }
16,742
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; }
16,743
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(); }
16,744
public ServerSocketChannel getChannel() { return ch; }
public ServerSocketChannel getChannel() { return null; }
16,745