bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public String getDisplayName() { return getDisplayName(defaultLocale); }
public final String getDisplayName() { return getDisplayName(defaultLocale); }
28,532
public String getDisplayVariant() { return getDisplayVariant(defaultLocale); }
public final String getDisplayVariant() { return getDisplayVariant(defaultLocale); }
28,533
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
28,534
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
28,535
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
28,536
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
28,537
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,...
28,538
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
28,539
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
28,540
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
28,541
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
28,542
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k...
28,543
public static String[] getISOCountries() { return new String[] { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "...
public static String[] getISOCountries() { return new String[] { "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "...
28,544
public static String[] getISOLanguages() { return new String[] { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "...
public static String[] getISOLanguages() { return new String[] { "aa", "ab", "af", "am", "ar", "as", "ay", "az", "ba", "be", "bg", "bh", "bi", "bn", "bo", "br", "ca", "co", "cs", "cy", "da", "de", "dz", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fj", "fo", "...
28,545
public String getLanguage() { return language; }
public String getLanguage() { return language; }
28,546
public String getVariant() { return variant; }
public String getVariant() { return variant; }
28,547
public synchronized int hashCode() { // This method is synchronized because writeObject() might reset // the hashcode. return hashcode; }
public synchronized int hashCode() { // This method is synchronized because writeObject() might reset // the hashcode. return hashcode; }
28,548
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); }
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); }
28,549
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); }
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); }
28,550
public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new PropertyPermission("user.language", "write")); default...
public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new PropertyPermission("user.language", "write")); default...
28,551
public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new PropertyPermission("user.language", "write")); default...
public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new PropertyPermission("user.language", "write")); default...
28,552
public final String toString() { if (language.length() == 0 && country.length() == 0) return ""; else if (country.length() == 0 && variant.length() == 0) return language; StringBuffer result = new StringBuffer(language); result.append('_').append(country); ...
public final String toString() { if (language.length() == 0 && country.length() == 0) return ""; else if (country.length() == 0 && variant.length() == 0) return language; StringBuffer result = new StringBuffer(language); result.append('_').append(country); ...
28,553
public final String toString() { if (language.length() == 0 && country.length() == 0) return ""; else if (country.length() == 0 && variant.length() == 0) return language; StringBuffer result = new StringBuffer(language); result.append('_').append(country); ...
public final String toString() { if (language.length() == 0 && country.length() == 0) return ""; else if (country.length() == 0 && variant.length() == 0) return language; StringBuffer result = new StringBuffer(language); result.append('_').append(country); ...
28,554
private synchronized void writeObject(ObjectOutputStream output) throws IOException { // Synchronized so that hashCode() doesn't get wrong value. int tmpHashcode = hashcode; hashcode = -1; output.defaultWriteObject(); hashcode = tmpHashcode; }
private synchronized void writeObject(ObjectOutputStream output) throws IOException { // Synchronized so that hashCode() doesn't get wrong value. int tmpHashcode = hashcode; hashcode = -1; output.defaultWriteObject(); hashcode = tmpHashcode; }
28,555
public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternC...
public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternC...
28,556
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String[formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
28,557
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; }
28,558
public String[] [] getZoneStrings () { return zoneStrings; }
public String[] [] getZoneStrings () { return zoneStrings; }
28,559
public void paint(Graphics g, Shape allocation) { super.paint(g, allocation); // FIXME: Why is this overridden? I think that painting would be done // by the superclass and the stylesheet... Maybe find out when this // stuff is implemented properly. }
public void paint(Graphics g, Shape allocation) { super.paint(g, allocation); // FIXME: Why is this overridden? I think that painting would be done // by the superclass and the stylesheet... Maybe find out when this // stuff is implemented properly. }
28,560
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
public float getAlignment(int axis) { if (axis == X_AXIS) return super.getAlignment(axis); if (axis == Y_AXIS) { if (getViewCount() == 0) return super.getAlignment(axis); float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AX...
28,561
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F...
28,562
public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: not fully implemented getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.he...
public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: not fully implemented getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.he...
28,563
protected void setPropertiesFromAttributes() { // FIXME: Not implemented (need to use StyleSheet). }
StyleSheet ss = getStyleSheet(); attributes = ss.getViewAttributes(this); painter = ss.getBoxPainter(attributes); if (attributes != null) { setInsets((short) painter.getInset(TOP, this), (short) painter.getInset(LEFT, this), (short) painter.getInset(BOTTOM, this), (short) painter.getInset(RIGHT, this)); } float ...
28,564
protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; }
protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; }
28,565
public AttributeSet getAttributes() { return getStyleSheet().getViewAttributes(this); }
public AttributeSet getAttributes() { if (attributes == null) attributes = getStyleSheet().getViewAttributes(this); return attributes; }
28,566
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
28,568
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) thro...
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) thro...
28,569
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
28,570
public ListIterator<E> listIterator(final int index) { if (index < 0 || index > size()) throw new IndexOutOfBoundsException("Index: " + index + ", Size:" + size()); return new ListIterator<E>() { private int knownMod = modCount; private int position = ...
public ListIterator<E> listIterator() { if (index < 0 || index > size()) throw new IndexOutOfBoundsException("Index: " + index + ", Size:" + size()); return new ListIterator<E>() { private int knownMod = modCount; private int position = index; pri...
28,571
public ListIterator<E> listIterator(final int index) { if (index < 0 || index > size()) throw new IndexOutOfBoundsException("Index: " + index + ", Size:" + size()); return new ListIterator<E>() { private int knownMod = modCount; private int position = ...
public ListIterator<E> listIterator(final int index) { if (index < 0 || index > size()) throw new IndexOutOfBoundsException("Index: " + index + ", Size:" + size()); return new ListIterator<E>() { private int knownMod = modCount; private int position = ...
28,572
public boolean add(E o) { add(size(), o); return true; }
public void add(int index, E o) { add(size(), o); return true; }
28,573
public boolean add(E o) { add(size(), o); return true; }
public boolean add(E o) { add(size(), o); return true; }
28,574
public IllegalAccessError() { super(); }
public IllegalAccessError() { super(); }
28,575
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this); return -1; }
public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer((Component) this); return -1; }
28,576
protected AccessibleJComponent(JComponent component) {}
protected AccessibleJComponent(JComponent component) {}
28,577
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { // Support for reporting constrained property changes. }
VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue); for (int i = 0; i < listeners.length; i++) listeners[i].vetoableChange(evt); VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeE...
28,578
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
28,579
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); }
28,580
private void debug(String s) { if (Configuration.DEBUG) System.out.println(s); }
private void debug(String s) { if (DEBUG) System.out.println(s); }
28,581
private void dumpTable() { int start_range = 0; if (!Configuration.DEBUG) return; System.out.println("Dumping internal table:"); for (int i = 0; i < ranges.length; i++) { System.out.print("\t" + start_range + " => " + ranges[i] + ":"); if (attributes[i] == null) System.out.println("null")...
private void dumpTable() { int start_range = 0; if (!DEBUG) return; System.out.println("Dumping internal table:"); for (int i = 0; i < ranges.length; i++) { System.out.print("\t" + start_range + " => " + ranges[i] + ":"); if (attributes[i] == null) System.out.println("null"); else { ...
28,582
public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _NamingContextStub() { super(); _set_delegate(delegate); }
28,583
public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); }
public _NamingContextStub(Delegate delegate) { super(); }
28,584
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
public static ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
28,585
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
28,586
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new Missi...
28,587
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
28,588
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,589
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,590
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,591
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,592
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,593
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,594
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
28,595
public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); }
public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); }
28,596
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
28,597
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
28,598
private EventType(String type) { this.type = type; } // EventType()
private EventType(String type) { this.type = type; } // EventType()
28,599
private EventType(String type) { this.type = type; } // EventType()
private EventType(String type) { this.type = type; } // EventType()
28,600
public String toString() { return type; // TODO } // toString()
public String toString() { return type; // TODO } // toString()
28,601
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g...
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g...
28,602
public abstract byte[] getEncoded(int format);
public abstract byte[] getEncoded(int format);
28,605
public UndoableEditSupport() { // TODO } // UndoableEditSupport()
public UndoableEditSupport() { // TODO } // UndoableEditSupport()
28,606
protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit()
protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit()
28,607
public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener()
public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener()
28,608
public synchronized void beginUpdate() { // TODO } // beginUpdate()
public synchronized void beginUpdate() { // TODO } // beginUpdate()
28,609
protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit()
protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit()
28,610
public synchronized void endUpdate() { // TODO } // endUpdate()
public synchronized void endUpdate() { // TODO } // endUpdate()
28,611
public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel()
public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel()
28,612
public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit()
public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit()
28,613
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener()
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener()
28,614
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
28,615
public void paint(Graphics g, Shape s) { if (horizontalVisibility == null) checkContainer(); Shape newAlloc = adjustAllocation(s); // Set a clip to prevent drawing outside of the allocation area. // TODO: Is there a better way to achieve this? Shape clip = g.getClip(); g.setClip(s); sup...
public void paint(Graphics g, Shape s){if (horizontalVisibility == null)checkContainer();Shape newAlloc = adjustAllocation(s);// Set a clip to prevent drawing outside of the allocation area.// TODO: Is there a better way to achieve this?Shape clip = g.getClip();g.setClip(s);super.paint(g, newAlloc);g.setClip(clip);}
28,616
public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare...
public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare...
28,618
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
28,619
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
28,620
private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat...
private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat...
28,621
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
28,622
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
28,623
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
28,624
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = ne...
28,626
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = createLeafElement(paragr...
28,627
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
public boolean addEdit(UndoableEdit edit) { if (edit instanceof DocumentEvent.ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
28,628
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { DocumentEvent.ElementChange elEdit = (DocumentEvent.ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
28,629
public void mouseExited(MouseEvent e) { // There is nothing to do when the mouse exits // the border area. }
if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } public void mouseExited(MouseEvent e) if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showi...
28,630
public void mouseMoved(MouseEvent e) { // There is nothing to do when the mouse moves // over the border area. }
if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame.isResizable()) { int cursor; switch (sectionOfClick(e.getX(), e.getY())) { case NORTH: cursor = Cursor.N_RESIZE_CURSOR; break; case NORTH_EAST: cursor =...
28,631
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets = tabPane.getInsets(); i...
protectedvoidcalculateTabRects(inttabPlacement,inttabCount){if(tabCount==0)return;FontMetricsfm=getFontMetrics();SwingUtilities.calculateInnerArea(tabPane,calcRect);InsetstabAreaInsets=getTabAreaInsets(tabPlacement);Insetsinsets=tabPane.getInsets();intmax=0;intruns=0;intstart=getTabRunIndent(tabPlacement,1);if(tabPlace...
28,632
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
28,633
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
28,634
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
28,636
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
28,637