rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public static String toString(long num) | public static String toString(long num, int radix) | public static String toString(long num) { return toString(num, 10); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Long.java/buggy/core/src/classpath/5.0/java/lang/Long.java |
return toString(num, 10); | if ((int) num == num) return Integer.toString((int) num, radix); if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) radix = 10; char[] buffer = new char[65]; int i = 65; boolean isNeg = false; if (num < 0) { isNeg = true; num = -num; if (num < 0) { buffer[--i] = digits[(int) (-(num + radix) % radix)... | public static String toString(long num) { return toString(num, 10); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Long.java/buggy/core/src/classpath/5.0/java/lang/Long.java |
public BERValue(int tag, Object value) | public BERValue(int tag, Object value, byte[] encoded) | public BERValue(int tag, Object value) { super(tag, 0, value, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/BERValue.java/buggy/core/src/classpath/gnu/gnu/java/security/ber/BERValue.java |
super(tag, 0, value, null); | super(tag, 0, value, encoded); indefinite = true; | public BERValue(int tag, Object value) { super(tag, 0, value, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/BERValue.java/buggy/core/src/classpath/gnu/gnu/java/security/ber/BERValue.java |
if (origin == null || events == null) | if (origin == null || events == null || dgr == null) | public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
this.events = events; this.dgr = dgr; this.component = dgr.getComponent(); this.dragSource = dgr.getDragSource(); | public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java | |
return null; | return component; | public Component getComponent() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return 0; | return action; | public int getDragAction() { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return null; | return dragSource; | public DragSource getDragSource() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return (DragGestureRecognizer) source; | return (DragGestureRecognizer) getSource(); | public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) source; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return null; | return dgr.getTriggerEvent(); | public InputEvent getTriggerEvent() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return null; | return events.iterator(); | public Iterator iterator() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
return null; | return events.toArray(); | public Object[] toArray() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/DragGestureEvent.java/clean/core/src/classpath/java/java/awt/dnd/DragGestureEvent.java |
Transferable trans, DragSourceListener dsl) | Transferable trans, DragSourceListener dsl, FlavorMap map) | public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DragSource.java/buggy/core/src/classpath/java/java/awt/dnd/DragSource.java |
startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); | public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DragSource.java/buggy/core/src/classpath/java/java/awt/dnd/DragSource.java | |
public TransformerConfigurationException(String msg) { super(msg); | public TransformerConfigurationException() { super((String)null); | public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/TransformerConfigurationException.java/clean/core/src/classpath/javax/javax/xml/transform/TransformerConfigurationException.java |
protected AccessibleJTextField(JTextField component) { super(component); } | protected AccessibleJTextField() { } | protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/clean/core/src/classpath/javax/javax/swing/JTextField.java |
public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/clean/core/src/classpath/javax/javax/swing/JTextField.java |
public void removeActionListener(ActionListener l) { actions.removeElement(l); } | public void removeActionListener(ActionListener listener) { listenerList.remove(ActionListener.class, listener); } | public void removeActionListener(ActionListener l) { actions.removeElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/clean/core/src/classpath/javax/javax/swing/JTextField.java |
public Locale(String language, String country, String variant) { | public Locale(String language, String country, String variant) { | public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
if (defaultLocale != null) { language = convertLanguage(language); country = country.toUpperCase(); variant = variant.toUpperCase(); | if (defaultLocale != null) { language = convertLanguage(language).intern(); country = country.toUpperCase().intern(); variant = variant.toUpperCase().intern(); | public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public Object clone() { | public Object clone() { | public Object clone() { // This class is final, so no need to use native super.clone(). return new Locale(language, country, variant); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
private String convertLanguage(String language) { if (language.equals("")) return language; | private String convertLanguage(String language) { if (language.equals("")) return language; | private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
if (index != -1) return "iw,in,ji".substring(index, index + 2); | if (index != -1) return "iw,in,ji".substring(index, index + 2); | private String convertLanguage(String language) { if (language.equals("")) return language; language = language.toLowerCase(); int index = "he,id,yi".indexOf(language); if (index != -1) return "iw,in,ji".substring(index, index + 2); return language; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; | public boolean equals(Object obj) { if (this == obj) return true; if (! (obj instanceof Locale)) return false; | public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); | return (language == l.language && country == l.country && variant == l.variant); | public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public static Locale[] getAvailableLocales() { /* * I only return those for which localized language or country * information exists. XXX - remove hard coded list, and implement more * locales (Sun's JDK 1.4 has 148 installed locales!). */ return new Locale[] { ENGLISH, FRENCH, GERMAN, new Locale("ga", "")}; | public static Locale[] getAvailableLocales() { /* I only return those for which localized language * or country information exists. * XXX - remove hard coded list, and implement more locales (Sun's JDK 1.4 * has 148 installed locales!). */ return new Locale[] { ENGLISH, FRENCH, GERMAN, new Locale("ga", "") }; | public static Locale[] getAvailableLocales() { /* * I only return those for which localized language or country * information exists. XXX - remove hard coded list, and implement more * locales (Sun's JDK 1.4 has 148 installed locales!). */ return new Locale[] { ENGLISH,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getCountry() { | public String getCountry() { | public String getCountry() { return country; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public static Locale getDefault() { | public static Locale getDefault() { | public static Locale getDefault() { return defaultLocale; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getDisplayCountry() { | public final String getDisplayCountry() { | public String getDisplayCountry() { return getDisplayCountry(defaultLocale); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getDisplayLanguage() { | public final String getDisplayLanguage() { | public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getDisplayName() { | public final String getDisplayName() { | public String getDisplayName() { return getDisplayName(defaultLocale); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getDisplayVariant() { | public final String getDisplayVariant() { | public String getDisplayVariant() { return getDisplayVariant(defaultLocale); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
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," | public String getISO3Country() { if (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," | 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,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
+ "TO,TP,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF," + "WS,YE,YT,YU,ZA,ZM,ZR,ZW") | + "TO,TP,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF," + "WS,YE,YT,YU,ZA,ZM,ZR,ZW") | 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,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
if (index % 3 != 0 || language.length() != 2) throw new MissingResourceException( "Can't find ISO3 country for " + country, | if (index % 3 != 0 || country.length() != 2) throw new MissingResourceException ("Can't find ISO3 country for " + country, | 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,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
return ("ANDAREAFGATGAIAALBARMANTAGOATAARGASMAUTAUSABWAZEBIHBRBBGDBELBFABGR" | return ("ANDAREAFGATGAIAALBARMANTAGOATAARGASMAUTAUSABWAZEBIHBRBBGDBELBFABGR" | 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,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
+ "SLVSYRSWZTCATCDATFTGOTHATJKTKLTKMTUNTONTMPTURTTOTUVTWNTZAUKRUGAUMI" + "USAURYUZBVATVCTVENVGBVIRVNMVUTWLFWSMYEMMYTYUGZAFZMBZARZWE") | + "SLVSYRSWZTCATCDATFTGOTHATJKTKLTKMTUNTONTMPTURTTOTUVTWNTZAUKRUGAUMI" + "USAURYUZBVATVCTVENVGBVIRVNMVUTWLFWSMYEMMYTYUGZAFZMBZARZWE") | 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,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
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," | public String getISO3Language() { if (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," | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
+ "sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,ta,te,tg,th,ti,tk,tl,tn,to,tr," + "ts,tt,tw,ug,uk,ur,uz,vi,vo,wo,xh,ji,yo,za,zh,zu") | + "sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,ta,te,tg,th,ti,tk,tl,tn,to,tr," + "ts,tt,tw,ug,uk,ur,uz,vi,vo,wo,xh,ji,yo,za,zh,zu") | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
throw new MissingResourceException( "Can't find ISO3 language for " + language, | throw new MissingResourceException ("Can't find ISO3 language for " + language, | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
return ("aarabkaframharaasmaymazebakbelbulbihbisbenbodbrecatcoscescymdandeu" | return ("aarabkaframharaasmaymazebakbelbulbihbisbenbodbrecatcoscescymdandeu" | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
+ "srpsswsotsunsweswatamteltgkthatirtuktgltsntonturtsotattwiuigukrurd" + "uzbvievolwolxhoyidyorzhazhozul") | + "srpsswsotsunsweswatamteltgkthatirtuktgltsntonturtsotattwiuigukrurd" + "uzbvievolwolxhoyidyorzhazhozul") | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
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", "BY", "BZ", "CA", "CC", "CF", "CG", "CH", "CI", "CK", "CL... | 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", "BY", "BZ", "CA", "CC", "CF", "CG", "CH", "CI", "CK", "CL... | 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", "... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
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", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "ha", "he", "hi... | 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", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "ha", "he", "hi... | 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", "... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getLanguage() { | public String getLanguage() { | public String getLanguage() { return language; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public String getVariant() { | public String getVariant() { | public String getVariant() { return variant; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public synchronized int hashCode() { | public synchronized int hashCode() { | public synchronized int hashCode() { // This method is synchronized because writeObject() might reset // the hashcode. return hashcode; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { input.defaultReadObject(); hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); | public static void setDefault(Locale newLocale) { if (newLocale == null) throw new NullPointerException(); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
sm.checkPermission(new PropertyPermission("user.language", "write")); | sm.checkPermission(new PropertyPermission("user.language", "write")); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
public final String toString() { | public final String toString() { | 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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
if (variant.length() != 0) result.append('_').append(variant); | if (variant.length() != 0) result.append('_').append(variant); | 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); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
throws IOException { | throws IOException { | 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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java |
ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternChars = res.getString ("localPatternChars"); months = res.getStringArray ("months"); shortMonths = res.getStringArray ("shortMonths"); shortWeekdays = res.getStringArray ("shortWeekdays"); weekdays = res.getStringArray ("weekdays"); z... | ampms = getStringArray(res, "ampms"); eras = getStringArray(res, "eras"); localPatternChars = res.getString("localPatternChars"); months = getStringArray(res, "months"); shortMonths = getStringArray(res, "shortMonths"); shortWeekdays = getStringArray(res, "shortWeekdays"); weekdays = getStringArray(res, "weekdays"); zo... | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8715d93b882a298d1d0f54ea1f86e040d824a1db/DateFormatSymbols.java/clean/core/src/classpath/java/java/text/DateFormatSymbols.java |
String[] values = new String [formatPrefixes.length]; | String[] values = new String[formatPrefixes.length]; | 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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8715d93b882a298d1d0f54ea1f86e040d824a1db/DateFormatSymbols.java/clean/core/src/classpath/java/java/text/DateFormatSymbols.java |
{ values[i] = res.getString(formatPrefixes[i]+key); } | values[i] = res.getString(formatPrefixes[i] + key); | 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; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8715d93b882a298d1d0f54ea1f86e040d824a1db/DateFormatSymbols.java/clean/core/src/classpath/java/java/text/DateFormatSymbols.java |
public String[] [] getZoneStrings () { return zoneStrings; } | private String[][] getZoneStrings(ResourceBundle res) { try { int index = 0; String data = res.getString("zoneStrings"); String[] zones = data.split("\u00a9"); String[][] array = new String[zones.length][]; for (int a = 0; a < zones.length; ++a) array[a] = zones[a].split("\u00ae"); return array; } catch (MissingResourc... | public String[] [] getZoneStrings () { return zoneStrings; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8715d93b882a298d1d0f54ea1f86e040d824a1db/DateFormatSymbols.java/clean/core/src/classpath/java/java/text/DateFormatSymbols.java |
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. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/ListView.java/buggy/core/src/classpath/javax/javax/swing/text/html/ListView.java | ||
return 0.0F; | return super.getAlignment(axis); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java |
float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F) / prefHeight; | View first = getView(0); float firstRowHeight = first.getPreferredSpan(Y_AXIS); return prefHeight != 0 ? (firstRowHeight * first.getAlignment(Y_AXIS)) / prefHeight : 0; | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java |
Rectangle rect = (Rectangle) a; getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.height, this); | Rectangle rect = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); painter.paint(g, rect.x, rect.y, rect.width, rect.height, this); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java |
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 ... | protected void setPropertiesFromAttributes() { // FIXME: Not implemented (need to use StyleSheet). } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java | |
StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; | HTMLDocument doc = (HTMLDocument) getDocument(); return doc.getStyleSheet(); | protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java |
return getStyleSheet().getViewAttributes(this); | if (attributes == null) attributes = getStyleSheet().getViewAttributes(this); return attributes; | public AttributeSet getAttributes() { return getStyleSheet().getViewAttributes(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java |
if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); | public void getChars(int where, int len, Segment txt) 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 + len) > length) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GapContent.java/clean/core/src/classpath/javax/javax/swing/text/GapContent.java | |
if (where >= length) | if (where > length) | 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",... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GapContent.java/clean/core/src/classpath/javax/javax/swing/text/GapContent.java |
if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) | if ((where + nitems) >= length) | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GapContent.java/clean/core/src/classpath/javax/javax/swing/text/GapContent.java |
setPositionsInRange(gapEnd, 0, gapStart); | resetMarksAtZero(); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GapContent.java/clean/core/src/classpath/javax/javax/swing/text/GapContent.java |
public ListIterator<E> listIterator(final int index) | public ListIterator<E> listIterator() | 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 = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java |
if (index < 0 || index > size()) throw new IndexOutOfBoundsException("Index: " + index + ", Size:" + size()); return new ListIterator<E>() { private int knownMod = modCount; private int position = index; private int lastReturned = -1; private int size = size(); /** * Checks for modifications made to the list from * ... | return listIterator(0); | 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 = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java |
public boolean add(E o) | public void add(int index, E o) | public boolean add(E o) { add(size(), o); return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java |
add(size(), o); return true; | throw new UnsupportedOperationException(); | public boolean add(E o) { add(size(), o); return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java |
public IllegalAccessError() { super(); } | public IllegalAccessError() { } | public IllegalAccessError() { super(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fa6dec2bff713ecbdbc8d1a37bcc4276ec82bc14/IllegalAccessError.java/buggy/core/src/classpath/java/java/lang/IllegalAccessError.java |
return pane.getLayer(this); | return pane.getLayer((Component) this); | public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this); return -1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/JInternalFrame.java/clean/core/src/classpath/javax/javax/swing/JInternalFrame.java |
protected AccessibleJComponent(JComponent component) {} | protected AccessibleJComponent() {} | protected AccessibleJComponent(JComponent component) {} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java |
VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue); for (int i = 0; i < listeners.length; i++) listeners[i].vetoableChange(evt); | protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { // Support for reporting constrained property changes. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | |
public void setLayer(Component c, int layer, int position) | public void setLayer(Component c, int layer) | public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
setPosition(c, position); revalidate(); repaint(); | public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java | |
if (Configuration.DEBUG) | if (DEBUG) | private void debug(String s) { if (Configuration.DEBUG) System.out.println(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/FormatCharacterIterator.java/clean/core/src/classpath/gnu/gnu/java/text/FormatCharacterIterator.java |
if (!Configuration.DEBUG) | if (!DEBUG) | 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")... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/FormatCharacterIterator.java/clean/core/src/classpath/gnu/gnu/java/text/FormatCharacterIterator.java |
public _NamingContextStub(Delegate delegate) | public _NamingContextStub() | public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/_NamingContextStub.java/buggy/core/src/classpath/org/org/omg/CosNaming/_NamingContextStub.java |
_set_delegate(delegate); | public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/_NamingContextStub.java/buggy/core/src/classpath/org/org/omg/CosNaming/_NamingContextStub.java | |
public static final ResourceBundle getBundle(String baseName) | public static ResourceBundle getBundle(String baseName) | public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); | ClassLoader cl = security.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, Locale.getDefault(), cl); | public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
try | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java | |
catch (MissingResourceException ex) { } | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java | |
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { if (cache.containsKey(localizedName)) { Reference ref = (Reference) cache.get(localizedName); if (ref == null) return null; else { ResourceBundle rb = (ResourceBundle) ref.g... | private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
return rb; } } } ResourceBundle foundBundle = null; | ResourceBundle bundle = null; | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
foundBundle = (ResourceBundle) rbClass.newInstance(); foundBundle.parent = bundle; foundBundle.locale = locale; | if (ResourceBundle.class.isAssignableFrom(rbClass)) bundle = (ResourceBundle) rbClass.newInstance(); | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
catch (Exception ex) { foundBundle = null; } if (foundBundle == null) | catch (IllegalAccessException ex) {} catch (InstantiationException ex) {} catch (ClassNotFoundException ex) {} if (bundle == null) | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
final String resourceName | String resourceName | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
{ foundBundle = new PropertyResourceBundle(is); foundBundle.parent = bundle; foundBundle.locale = locale; } | bundle = new PropertyResourceBundle(is); | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
if (foundBundle == null) foundBundle = bundle; if (foundBundle == null) cache.put(localizedName, null); else cache.put(localizedName, new SoftReference(foundBundle)); return foundBundle; | return bundle; | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java |
HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); | adaptee.addRandomBytes (seed); | public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/SecureRandomAdapter.java/clean/core/src/classpath/gnu/gnu/java/security/jce/prng/SecureRandomAdapter.java |
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException | public void nextBytes(byte[] out) throws IllegalStateException, LimitReachedException | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BasePRNG.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/BasePRNG.java |
if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayIndexOutOfBoundsException("offset=" + offset + " length=" + length + " limit=" + out.length); if (ndx >= buffer.length) { fillBlock(); ndx = 0; }... | nextBytes(out, 0, out.length); | 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... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BasePRNG.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/BasePRNG.java |
private EventType(String type) { | private EventType(String type) { | private EventType(String type) { this.type = type; } // EventType() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DocumentEvent.java/clean/core/src/classpath/javax/javax/swing/event/DocumentEvent.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.