rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
try { CertificateFactory factory = CertificateFactory .getInstance(type); | try { CertificateFactory factory = CertificateFactory.getInstance(type); | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int count = s.readInt(); certs = new HashSet(); while (--count >= 0) { String type = (String) s.readObject(); int bytes = s.readInt(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
} catch (CertificateException e) { | } catch (CertificateException e) { | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); int count = s.readInt(); certs = new HashSet(); while (--count >= 0) { String type = (String) s.readObject(); int bytes = s.readInt(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
public String toString() { | public String toString() { | public String toString() { StringBuffer sb = new StringBuffer("(").append(location); if (certs == null || certs.isEmpty()) sb.append(" <no certificates>"); else { Iterator iter = certs.iterator(); for (int i = certs.size(); --i >= 0;) sb.append(' ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
else { | else { | public String toString() { StringBuffer sb = new StringBuffer("(").append(location); if (certs == null || certs.isEmpty()) sb.append(" <no certificates>"); else { Iterator iter = certs.iterator(); for (int i = certs.size(); --i >= 0;) sb.append(' ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
for (int i = certs.size(); --i >= 0;) | for (int i = certs.size(); --i >= 0; ) | public String toString() { StringBuffer sb = new StringBuffer("(").append(location); if (certs == null || certs.isEmpty()) sb.append(" <no certificates>"); else { Iterator iter = certs.iterator(); for (int i = certs.size(); --i >= 0;) sb.append(' ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
private void writeObject(ObjectOutputStream s) throws IOException { | private void writeObject(ObjectOutputStream s) throws IOException { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
else { | else { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
while (--count >= 0) { | while (--count >= 0) { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
try { | try { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
} catch (CertificateEncodingException e) { | } catch (CertificateEncodingException e) { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
else { | else { | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
s.writeByte(encoded[ i]); | s.writeByte(encoded[i]); | private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (certs == null) s.writeInt(0); else { int count = certs.size(); s.writeInt(count); Iterator iter = certs.iterator(); while (--count >= 0) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/CodeSource.java/buggy/core/src/classpath/java/java/security/CodeSource.java |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; | public boolean equals(Object obj) { if (! (obj instanceof URL)) return false; | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java |
URL uObj = (URL) obj; return handler.equals(this, uObj); | return ph.equals(this, (URL) obj); | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java |
public int hashCode() { | public int hashCode() { | public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java |
return handler.hashCode(this); | return ph.hashCode(this); | public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java |
public String getRef() { | public String getRef() { | public String getRef() { return ref; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java |
{ SocketPermission p; | { SocketPermission p; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; | if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
String ourlist = getActions(); String theirlist = p.getActions(); | String ourlist = getActions(); String theirlist = p.getActions(); | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (! ourlist.startsWith(theirlist)) return false; | if (ourlist.indexOf(theirlist) == -1) return false; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
int ourfirstport = 0; | if (hostport.equals(empty) && p.hostport.equals(empty)) return true; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
int ourlastport = 0; | int ourfirstport = 0; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
int theirfirstport = 0; | int ourlastport = 0; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
int theirlastport = 0; | int theirfirstport = 0; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (hostport.indexOf(":") == -1) | int theirlastport = 0; String ourhost; String theirhost; String range; int portsIndex; int portDelimitorIndex; portsIndex = hostport.indexOf(ports); if (portsIndex == -1) | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
ourfirstport = 0; ourlastport = 65535; | ourlastport = 65535; ourhost = hostport; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
else | else | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
String range = hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) ourfirstport = 0; else if (range.indexOf("-") == -1) ourfirstport = Integer.parseInt(range); else ourfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); | range = hostport.substring(portsIndex + 1); portDelimitorIndex = range.indexOf(portDelimitor); | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (range.endsWith("-")) ourlastport = 65535; else if (range.indexOf("-") == -1) ourlastport = Integer.parseInt(range); else ourlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); | if (portDelimitorIndex == 0) { ourfirstport = 0; } else if (portDelimitorIndex == -1) { ourfirstport = Integer.parseInt(range); ourlastport = ourfirstport; } else ourfirstport = Integer.parseInt(range.substring(0, portDelimitorIndex)); if (range.endsWith(portDelimitor)) ourlastport = 65535; else ourlastport = Integer... | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (p.hostport.indexOf(":") == -1) | portsIndex = p.hostport.indexOf(ports); if (portsIndex == -1) | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
theirfirstport = 0; ourlastport = 65535; | theirlastport = 65535; theirhost = p.hostport; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
else | else | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java | ||
String range = p.hostport.substring(p.hostport.indexOf(":") + 1); | range = p.hostport.substring(portsIndex + 1); portDelimitorIndex = range.indexOf(portDelimitor); if (portDelimitorIndex == 0) theirfirstport = 0; else if (portDelimitorIndex == -1) { theirfirstport = Integer.parseInt(range); theirlastport = theirfirstport; } else theirfirstport = Integer.parseInt(range.substring(0, po... | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java |
if (range.startsWith("-")) theirfirstport = 0; else if (range.indexOf("-") == -1) theirfirstport = Integer.parseInt(range); else theirfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) theirlastport = 65535; else if (range.indexOf("-") == -1) theirlastport = Integer.parseIn... | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d8850956b27a4a695d2fa1f7dd51ae960dc5095/SocketPermission.java/buggy/core/src/classpath/java/java/net/SocketPermission.java | |
} | public boolean lookingAt () { match = pattern.getRE().getMatch(input, 0); if (match != null) { if (match.getStartIndex() == 0) return true; match = null; } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Matcher.java/buggy/core/src/classpath/java/java/util/regex/Matcher.java | |
return find(0); | if (lookingAt()) { if (position == input.length()) return true; match = null; } return false; | public boolean matches () { return find(0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Matcher.java/buggy/core/src/classpath/java/java/util/regex/Matcher.java |
public REMatch getMatch(Object input, int index) { return getMatch(input,index,0); | public REMatch getMatch(Object input) { return getMatch(input,0,0); | public REMatch getMatch(Object input, int index) { return getMatch(input,index,0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java |
public String substituteAll(Object input,String replace,int index) { return substituteAll(input,replace,index,0); | public String substituteAll(Object input,String replace) { return substituteAll(input,replace,0,0); | public String substituteAll(Object input,String replace,int index) { return substituteAll(input,replace,index,0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java |
public String substitute(Object input,String replace,int index) { return substitute(input,replace,index,0); | public String substitute(Object input,String replace) { return substitute(input,replace,0,0); | public String substitute(Object input,String replace,int index) { return substitute(input,replace,index,0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java |
public MatteBorder(int top, int left, int bottom, int right, Color color) { super(top, left, bottom, right); this.c = color; } | public MatteBorder(int top, int left, int bottom, int right, Color matteColor) { super(top, left, bottom, right); if (matteColor == null) throw new IllegalArgumentException(); this.color = matteColor; } | public MatteBorder(int top, int left, int bottom, int right, Color color) { super(top, left, bottom, right); this.c = color; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/MatteBorder.java/clean/core/src/classpath/javax/javax/swing/border/MatteBorder.java |
{ return false; } | { return (color != null) && (color.getAlpha() == 255); } | public boolean isBorderOpaque() { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/MatteBorder.java/clean/core/src/classpath/javax/javax/swing/border/MatteBorder.java |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Insets i = getBorderInsets(); paintEdge(c, g, x, y, width, i.top, 0, 0); paintEdge(c, g, x, y + height - i.bottom, width, i.bottom, 0, height - i.bottom); paintEdge(c, g, x, y + i.top, i.left, height - i.top, 0, i.top); paintEdge(c... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/MatteBorder.java/clean/core/src/classpath/javax/javax/swing/border/MatteBorder.java |
public EmptyBorder(int left, int right, int top, int bottom) { this.l = left; this.r = right; this.t = top; this.b = bottom; } | public EmptyBorder(int top, int left, int bottom, int right) { this.top = top; this.left = left; this.bottom = bottom; this.right = right; } | public EmptyBorder(int left, int right, int top, int bottom) { this.l = left; this.r = right; this.t = top; this.b = bottom; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EmptyBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EmptyBorder.java |
public Insets getBorderInsets(Component c) { return getBorderInsets(c, new Insets(0,0,0,0)); } | public Insets getBorderInsets (Component c) { return new Insets (0, 0, 0, 0); } | public Insets getBorderInsets(Component c) { return getBorderInsets(c, new Insets(0,0,0,0)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractBorder.java/buggy/core/src/classpath/javax/javax/swing/border/AbstractBorder.java |
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = l; s.right = r; s.top = t; s.bottom = b; return s; } | public Insets getBorderInsets(Component c) { return getBorderInsets(c, null); } | public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = l; s.right = r; s.top = t; s.bottom = b; return s; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EmptyBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EmptyBorder.java |
{ return false; } | { /* The inherited implementation of AbstractBorder.isBorderOpaque() * would also return false. It is not clear why this is overriden * in the Sun implementation, at least not from just reading the * JavaDoc. */ return false; } | public boolean isBorderOpaque() { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EmptyBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EmptyBorder.java |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EmptyBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EmptyBorder.java |
public static DocumentBuilderFactory newInstance() { try { return (DocumentBuilderFactory) ClassStuff.createFactory ( defaultPropName, "gnu.xml.dom.JAXPFactory"); } catch (ClassCastException e) { throw new FactoryConfigurationError (e, "Factory class is the wrong type"); } } | public static DocumentBuilderFactory newInstance() { ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader == null) { loader = DocumentBuilderFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) ... | public static DocumentBuilderFactory newInstance() { try { return (DocumentBuilderFactory) ClassStuff.createFactory ( defaultPropName, "gnu.xml.dom.JAXPFactory"); } catch (ClassCastException e) { throw new FactoryConfigurationError (e, "Factory class is the wrong type"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilderFactory.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilderFactory.java |
public void setNamespaceAware(boolean value) { namespaceAware = value; } | public void setNamespaceAware(boolean awareness) { namespaceAware = awareness; } | public void setNamespaceAware(boolean value) { namespaceAware = value; } // setNamespaceAware() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilderFactory.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilderFactory.java |
public void setExpandEntityReferences(boolean value) { expandEntityRef = value; } | public void setExpandEntityReferences(boolean expandEntityRef) { expandEntityReferences = expandEntityRef; } | public void setExpandEntityReferences(boolean value) { expandEntityRef = value; } // setExpandEntityReferences() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilderFactory.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilderFactory.java |
public abstract void setEntityResolver(EntityResolver resolver); | public abstract void setEntityResolver(EntityResolver er); | public abstract void setEntityResolver(EntityResolver resolver); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilder.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilder.java |
public abstract void setErrorHandler(ErrorHandler handler); | public abstract void setErrorHandler(ErrorHandler eh); | public abstract void setErrorHandler(ErrorHandler handler); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilder.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilder.java |
public DOMSource(Node node, String systemID) { this.node = node; this.baseID = systemID; } | public DOMSource() { this(null, null); } | public DOMSource(Node node, String systemID) { this.node = node; this.baseID = systemID; } // DOMSource() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DOMSource.java/buggy/core/src/classpath/javax/javax/xml/transform/dom/DOMSource.java |
public abstract Document parse(InputSource source) throws SAXException, IOException; | public Document parse(InputStream is) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("input stream is null"); } return parse(new InputSource(is)); } | public abstract Document parse(InputSource source) throws SAXException, IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DocumentBuilder.java/buggy/core/src/classpath/javax/javax/xml/parsers/DocumentBuilder.java |
public SimpleAttributeSet(AttributeSet a) | public SimpleAttributeSet() | public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); if (a != null) addAttributes(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/SimpleAttributeSet.java/buggy/core/src/classpath/javax/javax/swing/text/SimpleAttributeSet.java |
tab = new Hashtable(); if (a != null) addAttributes(a); | this(null); | public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); if (a != null) addAttributes(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/SimpleAttributeSet.java/buggy/core/src/classpath/javax/javax/swing/text/SimpleAttributeSet.java |
Border b = c.getBorder(); if (b == null || b instanceof UIResource) c.setBorder(UIManager.getBorder(defaultBorderName)); | public static void installBorder(JComponent c, String defaultBorderName) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java | |
public static void installColors(JComponent c, String defaultBgName, String defaultFgName) | public static void installColors(JComponent c, String defaultBgName, String defaultFgName) | public static void installColors(JComponent c, String defaultBgName, String defaultFgName) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java |
Color bg = c.getBackground(); if (bg == null || bg instanceof UIResource) c.setBackground(UIManager.getColor(defaultBgName)); Color fg = c.getForeground(); if (fg == null || fg instanceof UIResource) c.setForeground(UIManager.getColor(defaultFgName)); | public static void installColors(JComponent c, String defaultBgName, String defaultFgName) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java | |
installColors(component, defaultBgName, defaultFgName); Font f = component.getFont(); if (f == null || f instanceof UIResource) component.setFont(UIManager.getFont(defaultFontName)); | public static void installColorsAndFont(JComponent component, String defaultBgName, String defaultFgName, String defaultFontName) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java | |
return null; | final URL file = baseClass.getResource(gifFile); return new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return new IconUIResource(new ImageIcon(file)); } }; | public static Object makeIcon(Class baseClass, String gifFile) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/clean/core/src/classpath/javax/javax/swing/LookAndFeel.java |
case Node.PROCESSING_INSTRUCTION_NODE: | case Node.DOCUMENT_NODE: | public boolean matches(Node node, int pos, int len) { short nodeType = node.getNodeType(); switch (nodeType) { case Node.ELEMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: case Node.COMMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NodeTypeTest.java/clean/core/src/classpath/gnu/gnu/xml/xpath/NodeTypeTest.java |
{ | public boolean matches(Node node, int pos, int len) { short nodeType = node.getNodeType(); switch (nodeType) { case Node.ELEMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: case Node.COMMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NodeTypeTest.java/clean/core/src/classpath/gnu/gnu/xml/xpath/NodeTypeTest.java | |
if (data != null && !data.equals(node.getNodeValue())) | return true; case Node.PROCESSING_INSTRUCTION_NODE: if (type > 0) | public boolean matches(Node node, int pos, int len) { short nodeType = node.getNodeType(); switch (nodeType) { case Node.ELEMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: case Node.COMMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NodeTypeTest.java/clean/core/src/classpath/gnu/gnu/xml/xpath/NodeTypeTest.java |
} | public boolean matches(Node node, int pos, int len) { short nodeType = node.getNodeType(); switch (nodeType) { case Node.ELEMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: case Node.COMMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NodeTypeTest.java/clean/core/src/classpath/gnu/gnu/xml/xpath/NodeTypeTest.java | |
public ShapeGraphicAttribute (Shape shape, int alignment, boolean stroke) | public ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke) | public ShapeGraphicAttribute (Shape shape, int alignment, boolean stroke) { super (alignment); this.shape = shape; this.stroke = stroke; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
super (alignment); | super(alignment); | public ShapeGraphicAttribute (Shape shape, int alignment, boolean stroke) { super (alignment); this.shape = shape; this.stroke = stroke; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
this.bounds = shape.getBounds2D(); | public ShapeGraphicAttribute (Shape shape, int alignment, boolean stroke) { super (alignment); this.shape = shape; this.stroke = stroke; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java | |
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException | public void draw(Graphics2D graphics, float x, float y) | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
throw new Error ("not implemented"); | graphics.translate(x, y); if (stroke == STROKE) graphics.draw(shape); else graphics.fill(shape); graphics.translate(- x, - y); | public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public boolean equals (Object obj) | public boolean equals(Object obj) | public boolean equals (Object obj) { if (! (obj instanceof ShapeGraphicAttribute)) return false; return equals ((ShapeGraphicAttribute) obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
return equals ((ShapeGraphicAttribute) obj); | return equals((ShapeGraphicAttribute) obj); | public boolean equals (Object obj) { if (! (obj instanceof ShapeGraphicAttribute)) return false; return equals ((ShapeGraphicAttribute) obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public float getAdvance () throws NotImplementedException | public float getAdvance() | public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
throw new Error ("not implemented"); | return Math.max(0, (float) bounds.getMaxX()); | public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public float getAscent () throws NotImplementedException | public float getAscent() | public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
throw new Error ("not implemented"); | return Math.max(0, -(float) bounds.getMinY()); | public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public Rectangle2D getBounds () | public Rectangle2D getBounds() | public Rectangle2D getBounds () { return shape.getBounds2D (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
return shape.getBounds2D (); | Rectangle2D.Float bounds = new Rectangle2D.Float(); bounds.setRect(this.bounds); if (stroke == STROKE) { bounds.width++; bounds.height++; } return bounds; | public Rectangle2D getBounds () { return shape.getBounds2D (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public float getDescent () throws NotImplementedException | public float getDescent() | public float getDescent () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
throw new Error ("not implemented"); | return Math.max(0, (float) bounds.getMaxY()); | public float getDescent () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public int hashCode () | public int hashCode() | public int hashCode () { // FIXME: Check what SUN does here return shape.hashCode (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
return shape.hashCode (); | return shape.hashCode(); | public int hashCode () { // FIXME: Check what SUN does here return shape.hashCode (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ShapeGraphicAttribute.java/clean/core/src/classpath/java/java/awt/font/ShapeGraphicAttribute.java |
public abstract void translate(double tx, double ty); | public abstract void translate(int x, int y); | public abstract void translate(double tx, double ty); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Graphics2D.java/buggy/core/src/classpath/java/java/awt/Graphics2D.java |
public void setRect(Rectangle2D r) | public void setRect(float x, float y, float w, float h) | public void setRect(Rectangle2D r) { x = (float) r.getX(); y = (float) r.getY(); width = (float) r.getWidth(); height = (float) r.getHeight(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/Rectangle2D.java/buggy/core/src/classpath/java/java/awt/geom/Rectangle2D.java |
x = (float) r.getX(); y = (float) r.getY(); width = (float) r.getWidth(); height = (float) r.getHeight(); | this.x = x; this.y = y; width = w; height = h; | public void setRect(Rectangle2D r) { x = (float) r.getX(); y = (float) r.getY(); width = (float) r.getWidth(); height = (float) r.getHeight(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/Rectangle2D.java/buggy/core/src/classpath/java/java/awt/geom/Rectangle2D.java |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PrinterMessageFromOperator.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/PrinterMessageFromOperator.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/PrinterMessageFromOperator.java |
public final String getName() | public String getName() | public final String getName() { return "printer-message-from-operator"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/PrinterMessageFromOperator.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/PrinterMessageFromOperator.java |
if (value == null) throw new NullPointerException("value may not be null"); | if (value == null || locale == null) throw new NullPointerException("value and/or locale may not be null"); | protected TextSyntax(String value, Locale locale) { if (value == null) throw new NullPointerException("value may not be null"); this.value = value; this.locale = locale; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/TextSyntax.java/buggy/core/src/classpath/javax/javax/print/attribute/TextSyntax.java |
visibleRowCount = 8; | visibleRowCount = 7; | void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java |
setSelectionMode(ListSelectionModel.SINGLE_SELECTION); | setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); | void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java |
if (a < 0) selectionModel.clearSelection(); else | public void setSelectedIndex(int a) { selectionModel.setSelectionInterval(a, a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java | |
public abstract int locationToIndex(JList index, Point location); | public abstract int locationToIndex(JList list, Point location); | public abstract int locationToIndex(JList index, Point location); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/ListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ListUI.java |
public InvalidMidiDataException(String s) | public InvalidMidiDataException() | public InvalidMidiDataException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/InvalidMidiDataException.java/clean/core/src/classpath/javax/javax/sound/midi/InvalidMidiDataException.java |
super(s); | super(); | public InvalidMidiDataException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/InvalidMidiDataException.java/clean/core/src/classpath/javax/javax/sound/midi/InvalidMidiDataException.java |
+ parent == null ? "" : "not " | + (parent == null ? "" : "not ") | protected AbstractPreferences(AbstractPreferences parent, String name) { if ( (name == null) // name should be given || (name.length() > MAX_NAME_LENGTH) // 80 characters max || (parent == null && name.length() != 0) // root has no name || (parent != null && name.length() == 0)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AbstractPreferences.java/buggy/core/src/classpath/java/java/util/prefs/AbstractPreferences.java |
public InflaterInputStream(InputStream in, Inflater inf) | public InflaterInputStream(InputStream in) | public InflaterInputStream(InputStream in, Inflater inf) { this(in, inf, 4096); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java |
this(in, inf, 4096); | this(in, new Inflater(), 4096); | public InflaterInputStream(InputStream in, Inflater inf) { this(in, inf, 4096); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java |
public int read(byte[] b, int off, int len) throws IOException { if (inf == null) throw new IOException("stream closed"); if (len == 0) return 0; int count = 0; for (;;) { try { count = inf.inflate(b, off, len); } catch (DataFormatException dfe) { throw new ZipException(dfe.getMessage()); } if (count > 0) return cou... | public int read() throws IOException { int nread = read(onebytebuffer, 0, 1); if (nread > 0) return onebytebuffer[0] & 0xff; return -1; | public int read(byte[] b, int off, int len) throws IOException { if (inf == null) throw new IOException("stream closed"); if (len == 0) return 0; int count = 0; for (;;) { try { count = inf.inflate(b, off, len); } catch (DataFormatException dfe) { throw new ZipException(df... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.