rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (withParams != null) { // compute the parameter values LinkedList values = new LinkedList(); for (Iterator i = wi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CallTemplateNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CallTemplateNode.java | |
{ | public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CallTemplateNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CallTemplateNode.java | |
} | public boolean references(QName var) { if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { return true; } } } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CallTemplateNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CallTemplateNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("call-template"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CallTemplateNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CallTemplateNode.java |
protected CertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) | protected CertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) | protected CertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) { this.certFacSpi = certFacSpi; this.provider = provider; this.type = type; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/CertificateFactory.java/buggy/core/src/classpath/java/java/security/cert/CertificateFactory.java |
return certFacSpi.engineGenerateCRL( inStream ); | return certFacSpi.engineGenerateCRL(inStream); | public final CRL generateCRL(InputStream inStream) throws CRLException { return certFacSpi.engineGenerateCRL( inStream ); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/CertificateFactory.java/buggy/core/src/classpath/java/java/security/cert/CertificateFactory.java |
frame.setVisible(true); | public void deiconifyFrame(JInternalFrame frame) { final JDesktopPane p = frame.getDesktopPane(); //frame.setVisible(true); if (p != null) { p.setSelectedFrame(frame); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.setVisible(false); | public void iconifyFrame(JInternalFrame frame) { final JDesktopPane p = frame.getDesktopPane(); //frame.setVisible(false); if ((p != null) && (p.getSelectedFrame() == frame)) { p.setSelectedFrame(null); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.dispose(); | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.dispose(); | public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.dispose(); | public void actionPerformed(ActionEvent e) { //if (frame == null) { frame = new JFrame("Desktop color"); colorChooser = new JColorChooser(); frame.add(colorChooser, BorderLayout.CENTER); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.dispose(); | public void actionPerformed(ActionEvent event) { desktop.setBackground(colorChooser.getColor()); frame.setVisible(false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
frame.dispose(); | public void actionPerformed(ActionEvent event) { desktop.setBackground(oldColor); frame.setVisible(false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/Desktop.java/buggy/gui/src/desktop/org/jnode/desktop/classic/Desktop.java | |
public URLStreamHandler() { | public URLStreamHandler() { | public URLStreamHandler() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
private static String canonicalizeFilename(String file) { | private static String canonicalizeFilename(String file) { | private static String canonicalizeFilename(String file) { // XXX - GNU Classpath has an implementation that might be more appropriate // for Windows based systems (gnu.java.io.PlatformHelper.toCanonicalForm) int index; // Replace "/./" with "/". This probably isn't very efficient in // the general case, but it's... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
private static String canonicalizeFilename(String file) { // XXX - GNU Classpath has an implementation that might be more appropriate // for Windows based systems (gnu.java.io.PlatformHelper.toCanonicalForm) int index; // Replace "/./" with "/". This probably isn't very efficient in // the general case, but it's... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java | ||
while ((index = file.indexOf("/../")) >= 0) { | while ((index = file.indexOf("/../")) >= 0) { | private static String canonicalizeFilename(String file) { // XXX - GNU Classpath has an implementation that might be more appropriate // for Windows based systems (gnu.java.io.PlatformHelper.toCanonicalForm) int index; // Replace "/./" with "/". This probably isn't very efficient in // the general case, but it's... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected boolean equals(URL url1, URL url2) { | protected boolean equals(URL url1, URL url2) { | protected boolean equals(URL url1, URL url2) { // This comparison is very conservative. It assumes that any // field can be null. return ( url1.getPort() == url2.getPort() && ((url1.getProtocol() == null && url2.getProtocol() == null) || (url1.getProtocol() != null && url1.getProtocol().equals(url2.g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
return ( url1.getPort() == url2.getPort() | return (url1.getPort() == url2.getPort() | protected boolean equals(URL url1, URL url2) { // This comparison is very conservative. It assumes that any // field can be null. return ( url1.getPort() == url2.getPort() && ((url1.getProtocol() == null && url2.getProtocol() == null) || (url1.getProtocol() != null && url1.getProtocol().equals(url2.g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
|| (url1.getHost() != null && url1.getHost().equals(url2.getHost()))) | || (url1.getHost() != null && url1.getHost().equals(url2.getHost()))) | protected boolean equals(URL url1, URL url2) { // This comparison is very conservative. It assumes that any // field can be null. return ( url1.getPort() == url2.getPort() && ((url1.getProtocol() == null && url2.getProtocol() == null) || (url1.getProtocol() != null && url1.getProtocol().equals(url2.g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
|| (url1.getPath() != null && url1.getPath().equals(url2.getPath()))) | || (url1.getPath() != null && url1.getPath().equals(url2.getPath()))) | protected boolean equals(URL url1, URL url2) { // This comparison is very conservative. It assumes that any // field can be null. return ( url1.getPort() == url2.getPort() && ((url1.getProtocol() == null && url2.getProtocol() == null) || (url1.getProtocol() != null && url1.getProtocol().equals(url2.g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
|| (url1.getRef() != null && url1.getRef().equals(url2.getRef())))); | || (url1.getRef() != null && url1.getRef().equals(url2.getRef())))); | protected boolean equals(URL url1, URL url2) { // This comparison is very conservative. It assumes that any // field can be null. return ( url1.getPort() == url2.getPort() && ((url1.getProtocol() == null && url2.getProtocol() == null) || (url1.getProtocol() != null && url1.getProtocol().equals(url2.g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected int getDefaultPort() { | protected int getDefaultPort() { | protected int getDefaultPort() { return -1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected InetAddress getHostAddress(URL url) { | protected InetAddress getHostAddress(URL url) { | protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (hostname == "") | if (hostname.equals("")) | protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
try { | try { | protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
} catch (UnknownHostException e) { | } catch (UnknownHostException e) { | protected InetAddress getHostAddress(URL url) { String hostname = url.getHost(); if (hostname == "") return null; try { return InetAddress.getByName(hostname); } catch (UnknownHostException e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected int hashCode(URL url) { | protected int hashCode(URL url) { | protected int hashCode(URL url) { return url.getProtocol().hashCode() + ((url.getHost() == null) ? 0 : url.getHost().hashCode()) + url.getFile().hashCode() + url.getPort(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
+ url.getFile().hashCode() + url.getPort(); | + url.getFile().hashCode() + url.getPort(); | protected int hashCode(URL url) { return url.getProtocol().hashCode() + ((url.getHost() == null) ? 0 : url.getHost().hashCode()) + url.getFile().hashCode() + url.getPort(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); | { InetAddress addr1 = getHostAddress(url1); InetAddress addr2 = getHostAddress(url2); | protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
String host1 = url1.getHost(); String host2 = url2.getHost(); if (host1 != null && host2 != null) return host1.equalsIgnoreCase(host2); return host1 == null && host2 == null; | protected boolean hostsEqual(URL url1, URL url2) throws UnknownHostException { InetAddress addr1 = InetAddress.getByName(url1.getHost()); InetAddress addr2 = InetAddress.getByName(url2.getHost()); return addr1.equals(addr2); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java | |
protected abstract URLConnection openConnection(URL u) throws IOException; | protected abstract URLConnection openConnection(URL url) throws IOException; | protected abstract URLConnection openConnection(URL u) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected void parseURL(URL url, String spec, int start, int end) { | protected void parseURL(URL url, String spec, int start, int end) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (spec.regionMatches(start, " | if (spec.regionMatches(start, " { String genuineHost; | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
host = spec.substring(start, hostEnd); | authority = host = spec.substring(start, hostEnd); if ((at_host = host.indexOf('@')) >= 0) { genuineHost = host.substring(at_host); userInfo = host.substring(0, at_host); } else genuineHost = host; | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if ((colon = host.indexOf(':')) >= 0) { try { port = Integer.parseInt(host.substring(colon + 1)); } catch (NumberFormatException e) { | if ((colon = genuineHost.indexOf(':')) >= 0) { try { port = Integer.parseInt(genuineHost.substring(colon + 1)); } catch (NumberFormatException e) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
} else if (host == null) | } else if (host == null) | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (file == null || file.length() == 0 || (start < end && spec.charAt(start) == '/')) { | if (file == null || file.length() == 0 || (start < end && spec.charAt(start) == '/')) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
} else if (start < end) { | } else if (start < end) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
file = file.substring(0, file.lastIndexOf('/')) + '/' + spec.substring(start, end); | int lastSlash = file.lastIndexOf('/'); if (lastSlash < 0) file = spec.substring(start, end); else file = (file.substring(0, lastSlash) + '/' + spec.substring(start, end)); file = canonicalizeFilename(file); | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (ref == null) { | if (ref == null) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (hash != -1) { | if (hash != -1) { | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
setURL(url, url.getProtocol(), host, port, file, ref); | setURL(url, url.getProtocol(), host, port, authority, userInfo, file, query, ref); | protected void parseURL(URL url, String spec, int start, int end) { String host = url.getHost(); int port = url.getPort(); String file = url.getFile(); String ref = url.getRef(); if (spec.regionMatches(start, "//", 0, 2)) { int hostEnd; int colon; start += 2; int slash = spec.indexOf('/', start); if (sl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected boolean sameFile(URL url1, URL url2) { | protected boolean sameFile(URL url1, URL url2) { | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) | if (url1 == null || url2 == null) return false; int p1 = url1.getPort(); if (p1 == -1) p1 = url1.ph.getDefaultPort(); int p2 = url2.getPort(); if (p2 == -1) p2 = url2.ph.getDefaultPort(); if (p1 != p2) | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
String s1, s2; | String s1; String s2; | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (s1 != s2 && (s1 == null || !s1.equals(s2))) | if (s1 != s2 && (s1 == null || ! s1.equals(s2))) | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (s1 != s2 && (s1 == null || !s1.equals(s2))) | if (s1 != s2 && (s1 == null || ! s1.equals(s2))) | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (s1 != s2 && (s1 == null || !s1.equals(s2))) | if (s1 != s2 && (s1 == null || ! s1.equals(s2))) | protected boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s2 = url2.getProtoco... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected void setURL( URL u, String protocol, String host, int port, String file, String ref) { | protected void setURL(URL u, String protocol, String host, int port, String file, String ref) { | protected void setURL( URL u, String protocol, String host, int port, String file, String ref) { u.set(protocol, host, port, file, ref); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; | protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
protocol = u.getProtocol(); | protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
host = u.getHost(); if (host == null) host = ""; port = u.getPort(); file = u.getFile(); ref = u.getRef(); | file = url.getFile(); ref = url.getRef(); | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
int size = protocol.length() + host.length() + file.length() + 24; | int size = protocol.length() + authority.length() + file.length() + 24; | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (protocol != null && protocol.length() > 0) { | if (protocol != null && protocol.length() > 0) { | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
if (host.length() != 0) sb.append(" boolean port_needed = port > 0 && port != getDefaultPort(); if (port_needed) sb.append(':').append(port); | if (authority.length() != 0) { sb.append(" } | protected String toExternalForm(URL u) { String protocol, host, file, ref; int port; protocol = u.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = u.getHost(); if (host == null) host = ""; port = u.getP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
{ | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
} | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("if"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java |
addInternalFrameListener(this); | public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame;// setFocusCycleRoot(true);// final KeyboardFocusManager manager = KeyboardFocusManager// .getCurrentKeyboardFocusManager();// setFocusTraversalPolicy(manager.getDefaultFocusTraversalPolicy()); addInte... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/48a86a748452340a05f85e1aac31ccd6b2de9e36/SwingFramePeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingFramePeer.java | |
if (!"tr".equalsIgnoreCase(ctx.getLocalName())) | String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if (!"tr".equalsIgnoreCase(name)) | Node getRow(final int index) { int i = 0; for (Node ctx = getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (!"tr".equalsIgnoreCase(ctx.getLocalName())) { continue; } if (index == i) { return ctx; } i++; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLTableSectionElement.java/clean/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLTableSectionElement.java |
ActionMapUIResource am = new ActionMapUIResource(); am.put("press", new DefaultPressAction(rp)); am.put("release", new DefaultReleaseAction(rp)); SwingUtilities.replaceUIActionMap(rp, am); ComponentInputMapUIResource im = new ComponentInputMapUIResource(rp); SwingUtilities.replaceUIInputMap(rp, JComponent.WHEN_IN... | protected void installKeyboardActions(JRootPane rp) { // We currently do not install any keyboard actions here. // This method is here anyway for compatibility and to provide // the necessary hooks to subclasses. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/BasicRootPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicRootPaneUI.java | |
JRootPane source = (JRootPane) event.getSource(); String propertyName = event.getPropertyName(); if (propertyName.equals("defaultButton")) { Object newValue = event.getNewValue(); InputMap im = SwingUtilities.getUIInputMap(source, JComponent.WHEN_IN_FOCUSED_WINDOW); if (newValue != null) { Object[] keybindings = (Objec... | public void propertyChange(PropertyChangeEvent event) { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/BasicRootPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicRootPaneUI.java | |
SwingUtilities.replaceUIActionMap(rp, null); SwingUtilities.replaceUIInputMap(rp, JComponent.WHEN_IN_FOCUSED_WINDOW, null); | protected void uninstallKeyboardActions(JRootPane rp) { // We do nothing here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/BasicRootPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicRootPaneUI.java | |
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } | new MkdirCommand().execute(new CommandLine(args), System.in, System.out, System.err); | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2017000443d42345d2722c0e3010c0ee595d8e15/MkdirCommand.java/clean/fs/src/fs/org/jnode/fs/command/MkdirCommand.java |
subElements[i] = (MenuElement) getMenu(i); | { menu = getMenu(i); if (menu != null) { subElements[j++] = (MenuElement) menu; } else doResize = true; } | public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) subElements[i] = (MenuElement) getMenu(i); return subElements; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/JMenuBar.java/clean/core/src/classpath/javax/javax/swing/JMenuBar.java |
else { MenuElement[] subElements2 = new MenuElement[j]; for (int i = 0; i < j; i++) subElements2[i] = subElements[i]; return subElements2; } | public MenuElement[] getSubElements() { MenuElement[] subElements = new MenuElement[getComponentCount()]; for (int i = 0; i < getComponentCount(); i++) subElements[i] = (MenuElement) getMenu(i); return subElements; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/JMenuBar.java/clean/core/src/classpath/javax/javax/swing/JMenuBar.java | |
if (menuElement == null) return false; | static boolean processKeyBindingHelper(MenuElement menuElement, KeyStroke ks, KeyEvent e, int condition, boolean pressed) { // First check the menuElement itself, if it's a JComponent if (menuElement instanceof JComponent &&... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/JMenuBar.java/clean/core/src/classpath/javax/javax/swing/JMenuBar.java | |
}; | } else { gnuAny r = new gnuAny(); r.insert_Streamable(new streamReadyHolder(in)); } | public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dbc1cbd052dbda830a86b08d4cde2cef27bbaf55/ServiceRequestAdapter.java/buggy/core/src/classpath/gnu/gnu/CORBA/ServiceRequestAdapter.java |
if (font == null) { throw new IllegalArgumentException("font cannot be null"); } if (fontData == null) { throw new IllegalArgumentException("fontData cannot be null"); } | public TTFFontMetrics(Font font, TTFFontData fontData) throws IOException { super(font); this.fontData = fontData; this.scale = font.getSize() / fontData.getHorizontalHeaderTable().getAscent(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/215cf17c616a0479cc5efd99d57dcfbe8a1ee7ad/TTFFontMetrics.java/clean/gui/src/awt/org/jnode/awt/font/truetype/TTFFontMetrics.java | |
int newIdx = insertIndexForLayer(layer.intValue (), -1); | int newIdx = insertIndexForLayer(layer.intValue (), index); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
validate(); | revalidate(); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
validate(); | revalidate(); | public void setPosition(Component c, int position) { Integer layer = getLayer (c); int[] range = layerToRange (layer); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = top +... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
iter = null; | public LineBreakIterator () { iter = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/LineBreakIterator.java/clean/core/src/classpath/gnu/gnu/java/text/LineBreakIterator.java | |
changeState(ARMED, a); | if ((a && isArmed()) || (!a && !isArmed())) return; if (!isEnabled()) return; if (a) stateMask = stateMask | ARMED; else stateMask = stateMask & (~ARMED); fireStateChanged(); | public void setArmed(boolean a) { changeState(ARMED, a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
changeState(ENABLED, e); | if ((e && isEnabled()) || (!e && !isEnabled())) return; if (e) stateMask = stateMask | ENABLED; else stateMask = stateMask & (~ENABLED); fireStateChanged(); | public void setEnabled(boolean e) { changeState(ENABLED, e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
changeState(PRESSED, p); | if ((p && isPressed()) || (!p && !isPressed())) return; if (!isEnabled()) return; if (p) stateMask = stateMask | PRESSED; else stateMask = stateMask & (~PRESSED); if (!p && isArmed()) fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand)); fireStateChanged(); | public void setPressed(boolean p) { changeState(PRESSED, p); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
changeState(ROLLOVER, r); | if ((r && isRollover()) || (!r && !isRollover())) return; if (!isEnabled()) return; if (r) stateMask = stateMask | ROLLOVER; else stateMask = stateMask & (~ROLLOVER); fireStateChanged(); | public void setRollover(boolean r) { changeState(ROLLOVER, r); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
changeState(SELECTED, s); | if ((s && isSelected()) || (!s && !isSelected())) return; if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED); fireStateChanged(); if (s) { fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, null, ItemEvent.SELECTED)); if (group != null) group.setSelected(this, t... | public void setSelected(boolean s) { changeState(SELECTED, s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void finalize () { unmapImpl(); } | public void finalize() throws Throwable { unmapImpl(); } | public void finalize () { unmapImpl(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/MappedByteBuffer.java/buggy/core/src/classpath/java/java/nio/MappedByteBuffer.java |
return null; | return new AccessibleJTree(); | public AccessibleContext getAccessibleContext() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java |
return ((JViewport) getParent()).getWidth() > getPreferredSize().width; | return ((JViewport) getParent()).getHeight() > getPreferredSize().height; | public boolean getScrollableTracksViewportHeight() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java |
return ((JViewport) getParent()).getHeight() > getPreferredSize().height; | return ((JViewport) getParent()).getWidth() > getPreferredSize().width; | public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return ((JViewport) getParent()).getHeight() > getPreferredSize().height; return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java |
public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; } | public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; } | public UDPDatagramSocketImpl(UDPProtocol protocol) { this.protocol = protocol; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java |
protected void doBind(int lport, InetAddress laddr) throws SocketException { protocol.bind(this); } | protected void doBind(int lport, InetAddress laddr) throws SocketException { protocol.bind(this); } | protected void doBind(int lport, InetAddress laddr) throws SocketException { //Syslog.debug("doBind(" + lport + "," + laddr + ")"); protocol.bind(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java |
protected void doClose() { protocol.unbind(this); } | protected void doClose() { protocol.unbind(this); } | protected void doClose() { protocol.unbind(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java |
protected void onReceive(DatagramPacket p, SocketBuffer skbuf) throws IOException { final IPv4Header ipHdr = (IPv4Header)skbuf.getNetworkLayerHeader(); final UDPHeader udpHdr = (UDPHeader)skbuf.getTransportLayerHeader(); p.setData(skbuf.toByteArray(), 0, skbuf.getSize()); p.setAddress(ipHdr.getSource().toInetAddress())... | protected void onReceive(DatagramPacket p, SocketBuffer skbuf) throws IOException { final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPHeader udpHdr = (UDPHeader) skbuf.getTransportLayerHeader(); p.setData(skbuf.toByteArray(), 0, skbuf.getSize()); p.setAddress(ipHdr.getSource().toInetAddress(... | protected void onReceive(DatagramPacket p, SocketBuffer skbuf) throws IOException { final IPv4Header ipHdr = (IPv4Header)skbuf.getNetworkLayerHeader(); final UDPHeader udpHdr = (UDPHeader)skbuf.getTransportLayerHeader(); p.setData(skbuf.toByteArray(), 0, skbuf.getSize()); p.setAddress(ipHdr.getSource().toInetAd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java |
protected void send(DatagramPacket p) throws IOException { final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyLocalAddress() || (getDevice() != null)) ... | protected void send(DatagramPacket p) throws IOException { final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyLocalAddress() || (getDevice() != null)) ... | protected void send(DatagramPacket p) throws IOException { //Syslog.debug("UDP-send: " + p); final IPv4Address dstAddress = new IPv4Address(p.getAddress()); final IPv4Header ipHdr; ipHdr = new IPv4Header(getTos(), getTimeToLive(), IPPROTO_UDP, dstAddress, p.getLength() + UDP_HLEN); if (!getLocalAddress().isAnyL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPDatagramSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/udp/UDPDatagramSocketImpl.java |
protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.put(lport, socket); | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { Integer lport = new Integer(socket.getLocalPort()); if (lport.compareTo(zero) != 0 && sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { Integer ran; while (lport.compareTo(zero... | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java |
} | protected synchronized void bind(UDPDatagramSocketImpl socket) throws SocketException { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.containsKey(lport)) { throw new SocketException("Port already bound (" + lport + ")"); } else { sockets.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java | |
protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java |
} | protected synchronized void unbind(UDPDatagramSocketImpl socket) { final Integer lport = new Integer(socket.getLocalPort()); if (sockets.get(lport) == socket) { sockets.remove(lport); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.