rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
} else { PermissionCollection pc = (PermissionCollection) perms .get(permClass); if (pc == null) { | else { PermissionCollection pc = (PermissionCollection) perms.get(perm.getClass()); if (pc == null) { | public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/Permissions.java/buggy/core/src/classpath/java/java/security/Permissions.java |
if (pc == null) { | if (pc == null) | public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/Permissions.java/buggy/core/src/classpath/java/java/security/Permissions.java |
} perms.put(permClass, pc); | perms.put(perm.getClass(), pc); | public void add(Permission perm) { if (isReadOnly()) { throw new SecurityException( "PermissionCollection is read only"); } final Class permClass = perm.getClass(); if (perm instanceof AllPermission) { if (allPermission == null) { allPermission = perm.ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/Permissions.java/buggy/core/src/classpath/java/java/security/Permissions.java |
public final CodeSource getCodeSource() { return code_source; } | public final CodeSource getCodeSource() { return code_source; } | public final CodeSource getCodeSource() { return code_source; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/buggy/core/src/classpath/java/java/security/ProtectionDomain.java |
public final PermissionCollection getPermissions() { | public final PermissionCollection getPermissions() { | public final PermissionCollection getPermissions() { return perms; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/buggy/core/src/classpath/java/java/security/ProtectionDomain.java |
throw new IOException("BlockDeviceAPI not found on device", ex); | final IOException ioe = new IOException("BlockDeviceAPI not found on device"); ioe.initCause(ex); throw ioe; | public void createImage() throws IOException, DriverException, FileSystemException { final FileDevice newFd = new FileDevice(destFile, "rw"); try { newFd.setLength(getDeviceLength()); formatDevice(newFd); final Device sysDev = getSystemDevice(newFd); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/BootFloppyBuilder.java/clean/builder/src/builder/org/jnode/build/BootFloppyBuilder.java |
throw new IOException("Cannot find BlockDeviceAPI", ex); | final IOException ioe = new IOException("BlockDeviceAPI not found on device"); ioe.initCause(ex); throw ioe; | protected void formatDevice(Device dev) throws IOException { GrubFatFormatter ff = createFormatter(); try { ff.format((BlockDeviceAPI) dev.getAPI(BlockDeviceAPI.class)); } catch (ApiNotFoundException ex) { throw new IOException("Cannot find BlockDeviceAPI", ex); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/BootFloppyBuilder.java/clean/builder/src/builder/org/jnode/build/BootFloppyBuilder.java |
public static String dumpString(byte[] data, String m) | public static String dumpString(byte[] data, int offset, int length, String m) | public static String dumpString(byte[] data, String m) { return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); | if (data == null) return m + "null\n"; StringBuffer sb = new StringBuffer(length * 3); if (length > 32) sb.append(m).append("Hexadecimal dump of ") .append(length).append(" bytes...\n"); int end = offset + length; String s; int l = Integer.toString(length).length(); if (l < 4) l = 4; for (; offset < end; offset += 32)... | public static String dumpString(byte[] data, String m) { return (data == null) ? "null\n" : dumpString(data, 0, data.length, m); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
a[j] = (byte) ((a[i] & 0x3C) >>> 2); | a[j] = (byte)((a[i] & 0x3C) >>> 2); | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
a[j] = (byte) ((a[i] & 0x30) >>> 4); | a[j] = (byte)((a[i] & 0x30) >>> 4); | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | ||
{ | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] fromBase64(String str) { int len = str.length(); if (len == 0) { throw new NumberFormatException("Empty string"); } byte[] a = new byte[len + 1]; int i, j; for (i = 0; i < len; i++) { try { a[i] = (byte) BASE64_CHARS.indexOf(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static int fromDigit(char c) { if (c >= '0' && c <= '9') { return c - '0'; } else if (c >= 'A' && c <= 'F') { return c - 'A' + 10; } else if (c >= 'a' && c <= 'f') { return c - 'a' + 10; } else throw new IllegalArgumentException("Invalid hexa... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final String toBase64(byte[] buffer) { int len = buffer.length, pos = len % 3; byte b0 = 0, b1 = 0, b2 = 0; switch (pos) { case 1: b2 = buffer[0]; break; case 2: b1 = buffer[0]; b2 = buffer[1]; break; } StringBuffer sb = new StringBuffe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
result[j] = (byte) (fromDigit(s.charAt(i++)) << 4); | result[j ] = (byte) (fromDigit(s.charAt(i++)) << 4); | public static byte[] toBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0, j = 0; if ((limit % 2) == 1) { result[j++] = (byte) fromDigit(s.charAt(i++)); } while (i < limit) { result[j] = (byte) (fromDigit(s.charAt(i++... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
result[i] = (byte) (((i & 1) == 0) ? c >>> 8 : c); | result[i] = (byte)(((i & 1) == 0) ? c >>> 8 : c); | public static byte[] toBytesFromUnicode(String s) { int limit = s.length() * 2; byte[] result = new byte[limit]; char c; for (int i = 0; i < limit; i++) { c = s.charAt(i >>> 1); result[i] = (byte) (((i & 1) == 0) ? c >>> 8 : c); } return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
{ | public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) { result[i] = (byte) fromDigit(s.charAt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) { result[i] = (byte) fromDigit(s.charAt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
result[i] = (byte) fromDigit(s.charAt(--limit)); | result[i ] = (byte) fromDigit(s.charAt(--limit)); | public static byte[] toReversedBytesFromString(String s) { int limit = s.length(); byte[] result = new byte[((limit + 1) / 2)]; int i = 0; if ((limit % 2) == 1) { result[i++] = (byte) fromDigit(s.charAt(--limit)); } while (limit > 0) { result[i] = (byte) fromDigit(s.charAt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java |
{ | public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
{ | public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
} | public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3a66fbdd7aa8ebdfaab43610332f1a4d60081b57/Util.java/clean/core/src/classpath/gnu/gnu/java/security/util/Util.java | |
public NumberFormatException(String s) { super(s); | public NumberFormatException() { | public NumberFormatException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/NumberFormatException.java/buggy/core/src/classpath/java/java/lang/NumberFormatException.java |
public BasicStroke() | public BasicStroke(float width, int cap, int join, float miterlimit, float[] dash, float dashPhase) | public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/054e1190f52096b0d4a2126fdefac7d16939c8ad/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java |
this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); | if (width < 0.0f ) throw new IllegalArgumentException("width " + width + " < 0"); else if (cap < CAP_BUTT || cap > CAP_SQUARE) throw new IllegalArgumentException("cap " + cap + " out of range [" + CAP_BUTT + ".." + CAP_SQUARE + "]"); else if (miterlimit < 1.0f && join == JOIN_MITER) throw new IllegalArgumentException("... | public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/054e1190f52096b0d4a2126fdefac7d16939c8ad/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java |
throw new Error("not implemented"); | int hash = Float.floatToIntBits(width); hash ^= cap; hash ^= join; hash ^= Float.floatToIntBits(limit); for (int i = 0; i < dash.length; i++) hash ^= Float.floatToIntBits(dash[i]); hash ^= Float.floatToIntBits(phase); return hash; | public int hashCode() { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/054e1190f52096b0d4a2126fdefac7d16939c8ad/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java |
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting); | void setRangeProperties(int value, int extent, int minimum, int maximum, boolean adjusting); | void setRangeProperties(int value, int extent, int min, int max, boolean adjusting); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/BoundedRangeModel.java/buggy/core/src/classpath/javax/javax/swing/BoundedRangeModel.java |
&& e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) | && e.id >= ItemEvent.ITEM_FIRST) { ItemEvent ie = (ItemEvent) e; int itemState = ie.getStateChange(); setState(itemState == ItemEvent.SELECTED ? true : false); if (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0) | dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Checkbox.java/buggy/core/src/classpath/java/java/awt/Checkbox.java |
} | dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Checkbox.java/buggy/core/src/classpath/java/java/awt/Checkbox.java | |
} | setState(boolean state){ this.state = state; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setState (state); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Checkbox.java/buggy/core/src/classpath/java/java/awt/Checkbox.java | |
public void update(byte[] buf, int off, int len) { | public void update (int bval) { | public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/buggy/core/src/classpath/java/java/util/zip/CRC32.java |
while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); | c = crc_table[(c ^ bval) & 0xff] ^ (c >>> 8); | public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/buggy/core/src/classpath/java/java/util/zip/CRC32.java |
public long getValue() { return (long)crc & 0xffffffffL; | public long getValue () { return (long) crc & 0xffffffffL; | public long getValue() { return (long)crc & 0xffffffffL; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/buggy/core/src/classpath/java/java/util/zip/CRC32.java |
if ("lt".equals(name) || "gt".equals(name) || "amp".equals(name) || "apos".equals(name) || "quot".equals(name)) { return; } | public void endEntity(String name) throws SAXException { if ("[dtd]".equals(name) || name.charAt(0) == '%') { // Ignore DTD and parameter entities return; } Entity entity = popEntity(); // TODO resolve external entities to ensure that entity has content if (expandEntityReferenc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8193e5c058d8e54bec24c8ad080ae362e7eda462/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
if ("lt".equals(name) || "gt".equals(name) || "amp".equals(name) || "apos".equals(name) || "quot".equals(name)) { return; } | public void startEntity(String name) throws SAXException { DocumentType doctype = doc.getDoctype(); if (doctype == null) { throw new SAXException("SAX parser error: " + "reference to entity in undeclared doctype"); } if ("[dtd]".equals(name) || name.charAt(0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8193e5c058d8e54bec24c8ad080ae362e7eda462/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
public AnySeqHolder(Any [] a_value) | public AnySeqHolder() | public AnySeqHolder(Any [] a_value) { value = a_value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/AnySeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/AnySeqHolder.java |
value = a_value; | public AnySeqHolder(Any [] a_value) { value = a_value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/AnySeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/AnySeqHolder.java | |
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) | public StreamHandler() | StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/StreamHandler.java/buggy/core/src/classpath/java/java/util/logging/StreamHandler.java |
this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".filter", /* must be instance of */ Filter.class, /* default: new instance of */ null); if (formatter != null) this.formatter = formatter; else this.format... | this(null, null); | StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + ".... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/StreamHandler.java/buggy/core/src/classpath/java/java/util/logging/StreamHandler.java |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return PrinterMakeAndModel.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/PrinterMakeAndModel.java/clean/core/src/classpath/javax/javax/print/attribute/standard/PrinterMakeAndModel.java |
public final String getName() | public String getName() | public final String getName() { return "printer-make-and-model"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/PrinterMakeAndModel.java/clean/core/src/classpath/javax/javax/print/attribute/standard/PrinterMakeAndModel.java |
} | public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1edc4cba009ff2c639001f1fd1842c4da4b86249/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
setAnchorSelectionIndex(index0); leadSelectionIndex = index1; | public void removeSelectionInterval(int index0, int index1) { int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.clear(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1edc4cba009ff2c639001f1fd1842c4da4b86249/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
{ | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1edc4cba009ff2c639001f1fd1842c4da4b86249/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
} | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1edc4cba009ff2c639001f1fd1842c4da4b86249/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
setAnchorSelectionIndex(index0); leadSelectionIndex=index1; | public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1edc4cba009ff2c639001f1fd1842c4da4b86249/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
public void set(int from, int to) | public void set(int pos) | public void set(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) -... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BitSet.java/buggy/core/src/classpath/5.0/java/util/BitSet.java |
if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) - 1); return; } bits[lo_offset] |= -1L << from; bits[hi_offset] |= (1L << to) -... | int offset = pos >> 6; ensure(offset); bits[offset] |= 1L << pos; | public void set(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) -... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BitSet.java/buggy/core/src/classpath/5.0/java/util/BitSet.java |
public BitSet get(int from, int to) | public boolean get(int pos) | public BitSet get(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BitSet.java/buggy/core/src/classpath/5.0/java/util/BitSet.java |
if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) { int len = Math.min(hi_offset - lo_offset + 1, bits.length - lo_offset); S... | int offset = pos >> 6; if (offset >= bits.length) return false; return (bits[offset] & (1L << pos)) != 0; | public BitSet get(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BitSet.java/buggy/core/src/classpath/5.0/java/util/BitSet.java |
public static Registry getRegistry(int port) throws RemoteException { return (getRegistry("localhost", port)); | public static Registry getRegistry() throws RemoteException { return (getRegistry("localhost", Registry.REGISTRY_PORT)); | public static Registry getRegistry(int port) throws RemoteException { return (getRegistry("localhost", port));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/LocateRegistry.java/buggy/core/src/classpath/java/java/rmi/registry/LocateRegistry.java |
public ULongLongSeqHolder(long[] initial_value) | public ULongLongSeqHolder() | public ULongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ULongLongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/ULongLongSeqHolder.java |
value = initial_value; typecode.setLength(value.length); | public ULongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ULongLongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/ULongLongSeqHolder.java | |
notifyInterceptors(state.value()); | public void activate() throws AdapterInactive { if (state != State.INACTIVE) state = State.ACTIVE; else throw new AdapterInactive(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/gnuPOAManager.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOAManager.java | |
notifyInterceptors(state.value()); | public void deactivate(boolean etherealize_objects, boolean wait_for_completion ) throws AdapterInactive { if (state == State.INACTIVE) throw new AdapterInactive("Repetetive inactivation"); state = State.INACTIVE; if (wait_for_completion) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/gnuPOAManager.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOAManager.java | |
notifyInterceptors(state.value()); | public void discard_requests(boolean wait_for_completion) throws AdapterInactive { if (state != State.INACTIVE) state = State.DISCARDING; else throw new AdapterInactive(); if (wait_for_completion) waitForIdle(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/gnuPOAManager.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOAManager.java | |
notifyInterceptors(state.value()); | public void hold_requests(boolean wait_for_completion) throws AdapterInactive { if (state != State.INACTIVE) state = State.HOLDING; else throw new AdapterInactive(); if (wait_for_completion) waitForIdle(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/gnuPOAManager.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOAManager.java | |
gnuPOA poa = (gnuPOA) iter.next(); | poa = (gnuPOA) iter.next(); | public void waitForIdle() { if (state == State.ACTIVE) throw new BAD_INV_ORDER("The state is active"); Iterator iter = POAs.iterator(); while (iter.hasNext()) { gnuPOA poa = (gnuPOA) iter.next(); poa.waitWhileRunning(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/gnuPOAManager.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOAManager.java |
public double distance(Point2D p) | public static double distance(double x1, double y1, double x2, double y2) | public double distance(Point2D p) { return distance(getX(), p.getX(), getY(), p.getY()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Point2D.java/buggy/core/src/classpath/java/java/awt/geom/Point2D.java |
return distance(getX(), p.getX(), getY(), p.getY()); | return Math.sqrt(distanceSq(x1, y1, x2, y2)); | public double distance(Point2D p) { return distance(getX(), p.getX(), getY(), p.getY()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Point2D.java/buggy/core/src/classpath/java/java/awt/geom/Point2D.java |
boolean contains(Point2D p); | boolean contains(double x, double y); | boolean contains(Point2D p); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Shape.java/buggy/core/src/classpath/java/java/awt/Shape.java |
if ((! (view instanceof Scrollable) || ((Scrollable) view).getScrollableTracksViewportHeight()) && viewPref.height < portBounds.height) | if ((! (view instanceof Scrollable) && viewPref.height < portBounds.height || (view instanceof Scrollable && ((Scrollable) view).getScrollableTracksViewportHeight()))) | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ViewportLayout.java/clean/core/src/classpath/javax/javax/swing/ViewportLayout.java |
if ((! (view instanceof Scrollable) || ((Scrollable) view).getScrollableTracksViewportWidth()) && viewPref.width < portBounds.width) | if ((! (view instanceof Scrollable) && viewPref.width < portBounds.width || (view instanceof Scrollable && ((Scrollable) view).getScrollableTracksViewportWidth()))) | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ViewportLayout.java/clean/core/src/classpath/javax/javax/swing/ViewportLayout.java |
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; | public BoxLayout(Container container, int way) { int width = 0; int height = 0; ComponentOrientation orientation = container.getComponentOrientation(); | public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
this.way = way; | this.container = container; this.way = way; | public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
if (way == X_AXIS) { width = 1; } | switch (way) { case X_AXIS: width = 1; break; case Y_AXIS: height = 1; break; case LINE_AXIS: if (orientation.isHorizontal()) height = 1; | public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
{ height = 1; } | width = 1; break; case PAGE_AXIS: if (!orientation.isHorizontal()) height = 1; else width = 1; break; default: throw new AWTError("Invalid value for way"); } | public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
gridbag = new GridLayout(width, height); } | grid = new GridLayout(width, height); } | public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
public void addLayoutComponent(String name, Component comp) { if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() + 1); } else { gridbag.setRows( gridbag.getRows() + 1); } } | public void addLayoutComponent(String name, Component component) { if (way == X_AXIS || (way == LINE_AXIS && component.getComponentOrientation().isHorizontal()) || (way == PAGE_AXIS && !component.getComponentOrientation().isHorizontal())) grid.setColumns(grid.getColumns() + 1); else grid.setRows(grid.getRows() + 1); } | public void addLayoutComponent(String name, Component comp) { if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() + 1); } else { gridbag.setRows( gridbag.getRows() + 1); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
public float getLayoutAlignmentX ( Container parent ) { return 0; } | public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } | public float getLayoutAlignmentX ( Container parent ) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
public float getLayoutAlignmentY ( Container parent ) { return 0; } | public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; } | public float getLayoutAlignmentY ( Container parent ) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
public void invalidateLayout ( Container parent ) { } | public void invalidateLayout(Container parent) { if (parent != container) throw new AWTError("invalid parent"); } | public void invalidateLayout ( Container parent ) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
{ gridbag.layoutContainer(parent); } | { if (parent != container) throw new AWTError("invalid parent"); grid.layoutContainer(parent); } | public void layoutContainer(Container parent) { gridbag.layoutContainer(parent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
public Dimension maximumLayoutSize ( Container parent ) { return preferredLayoutSize(parent); } | public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return preferredLayoutSize(parent); } | public Dimension maximumLayoutSize ( Container parent ) { return preferredLayoutSize(parent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
{ return gridbag.minimumLayoutSize(parent); } | { if (parent != container) throw new AWTError("invalid parent"); return grid.minimumLayoutSize(parent); } | public Dimension minimumLayoutSize(Container parent) { return gridbag.minimumLayoutSize(parent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.