bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,210 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,211 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,212 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,213 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,214 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,215 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,216 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,217 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,218 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,219 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,220 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,221 |
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... | 35,222 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,223 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,224 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,225 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,226 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,227 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,228 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,229 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,230 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,231 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 35,232 |
public Object run() { return Object.class.getProtectionDomain(); } | public Object run() { return Object.class.getProtectionDomain(); } | 35,233 |
private char nameAndTypeInfo(String name, String type) { char nindex = utf8Info(name); char tindex = utf8Info(type); char[] c = {12, (char) (nindex >> 8), (char) (nindex & 0xff), (char) (tindex >> 8), (char) (tindex & 0xff)}; return poolIndex(new String(c)... | private char nameAndTypeInfo(String name, String type) { char nindex = utf8Info(name); char tindex = utf8Info(type); char[] c = {12, (char) (nindex >> 8), (char) (nindex & 0xff), (char) (tindex >> 8), (char) (tindex & 0xff)}; return poolIndex(new String(c)... | 35,234 |
private char nameAndTypeInfo(String name, String type) { char nindex = utf8Info(name); char tindex = utf8Info(type); char[] c = {12, (char) (nindex >> 8), (char) (nindex & 0xff), (char) (tindex >> 8), (char) (tindex & 0xff)}; return poolIndex(new String(c)... | private char nameAndTypeInfo(String name, String type) { char nindex = utf8Info(name); char tindex = utf8Info(type); char[] c = {12, (char) (nindex >> 8), (char) (nindex & 0xff), (char) (tindex >> 8), (char) (tindex & 0xff)}; return poolIndex(new String(c)... | 35,235 |
private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | 35,236 |
private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | 35,237 |
private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | private char poolIndex(String sequence) { Integer i = (Integer) poolEntries.get(sequence); if (i == null) { // pool starts at index 1 int size = poolEntries.size() + 1; if (size >= 65535) throw new IllegalArgumentException("exceeds VM... | 35,238 |
private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | 35,239 |
private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | 35,240 |
private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | private void putConst(int i) { if (i >= -1 && i <= 5) putU1(ICONST_0 + i); else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) { putU1(BIPUSH); putU1(i); } else { putU1(SIPUSH); putU2(i); ... | 35,241 |
private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | 35,242 |
private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | 35,243 |
private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | private void putLoad(int i, Class type) { int offset = 0; if (type == long.class) offset = 1; else if (type == float.class) offset = 2; else if (type == double.class) offset = 3; else if (! type.isPrimitive()) of... | 35,244 |
private void putU1(int i) { stream.append((char) i); } | private void putU1(int i) { stream.append((char) i); } | 35,245 |
private void putU2(int i) { stream.append((char) (i >> 8)).append((char) i); } | private void putU2(int i) { stream.append((char) (i >> 8)).append((char) i); } | 35,246 |
private void putU4(int i) { stream.append((char) (i >> 24)).append((char) (i >> 16)); stream.append((char) (i >> 8)).append((char) i); } | private void putU4(int i) { stream.append((char) (i >> 24)).append((char) (i >> 16)); stream.append((char) (i >> 8)).append((char) i); } | 35,247 |
private char refInfo(byte structure, String clazz, String name, String type) { char cindex = classInfo(clazz); char ntindex = nameAndTypeInfo(name, type); // relies on FIELD == 1, METHOD == 2, INTERFACE == 3 char[] c = {(char) (structure + 8), ... | private char refInfo(byte structure, String clazz, String name, String type) { char cindex = classInfo(clazz); char ntindex = nameAndTypeInfo(name, type); // relies on FIELD == 1, METHOD == 2, INTERFACE == 3 char[] c = {(char) (structure + 8), ... | 35,248 |
private char refInfo(byte structure, String clazz, String name, String type) { char cindex = classInfo(clazz); char ntindex = nameAndTypeInfo(name, type); // relies on FIELD == 1, METHOD == 2, INTERFACE == 3 char[] c = {(char) (structure + 8), ... | private char refInfo(byte structure, String clazz, String name, String type) { char cindex = classInfo(clazz); char ntindex = nameAndTypeInfo(name, type); // relies on FIELD == 1, METHOD == 2, INTERFACE == 3 char[] c = {(char) (structure + 8), ... | 35,249 |
private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | 35,250 |
private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | 35,251 |
private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | 35,252 |
private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i ... | 35,253 |
private char utf8Info(String str) { String utf8 = toUtf8(str); int len = utf8.length(); return poolIndex("\1" + (char) (len >> 8) + (char) (len & 0xff) + utf8); } | private char utf8Info(String str) { String utf8 = toUtf8(str); int len = utf8.length(); return poolIndex("\1" + (char) (len >> 8) + (char) (len & 0xff) + utf8); } | 35,254 |
private char utf8Info(String str) { String utf8 = toUtf8(str); int len = utf8.length(); return poolIndex("\1" + (char) (len >> 8) + (char) (len & 0xff) + utf8); } | private char utf8Info(String str) { String utf8 = toUtf8(str); int len = utf8.length(); return poolIndex("\1" + (char) (len >> 8) + (char) (len & 0xff) + utf8); } | 35,255 |
private String wrapper(Class clazz) { if (clazz == boolean.class) return "java/lang/Boolean"; if (clazz == byte.class) return "java/lang/Byte"; if (clazz == short.class) return "java/lang/Short"; if (clazz == char.class) return "java/lang/Character"; if (clazz... | private String wrapper(Class clazz) { if (clazz == boolean.class) return "java/lang/Boolean"; if (clazz == byte.class) return "java/lang/Byte"; if (clazz == short.class) return "java/lang/Short"; if (clazz == char.class) return "java/lang/Character"; if (clazz... | 35,256 |
ProxyData() { } | ProxyData() { } | 35,257 |
private static String getPackage(Class k) { String name = k.getName(); int idx = name.lastIndexOf('.'); return name.substring(0, idx + 1); } | private static String getPackage(Class k) { String name = k.getName(); int idx = name.lastIndexOf('.'); return name.substring(0, idx + 1); } | 35,258 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,259 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces i... | 35,260 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,261 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,262 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,263 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,264 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,265 |
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... | 35,266 |
private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... | private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... | 35,267 |
private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... | private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... | 35,268 |
ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | 35,269 |
ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | 35,270 |
ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | ProxySignature(Method method) { this.method = method; Class[] exc = method.getExceptionTypes(); int i = exc.length; while (--i >= 0) { // discard unchecked exceptions if (Error.class.isAssignableFrom(exc[i]) || RuntimeException.cla... | 35,271 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,272 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,273 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,274 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,275 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,276 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,277 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,278 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,279 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,280 |
void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | void checkCompatibility(ProxySignature other) { if (method.getReturnType() != other.method.getReturnType()) throw new IllegalArgumentException("incompatible return types: " + method + ", " + other.method); // if you can think of a more effici... | 35,281 |
public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | 35,282 |
public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | 35,283 |
public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | public boolean equals(Object other) { ProxySignature ps = (ProxySignature) other; Class[] types1 = method.getParameterTypes(); Class[] types2 = ps.method.getParameterTypes(); if (! method.getName().equals(ps.method.getName()) || types1.length != types2.length) ... | 35,284 |
public int hashCode() { int hash = method.getName().hashCode(); Class[] types = method.getParameterTypes(); for (int i = 0; i < types.length; i++) hash = hash * 31 + types[i].hashCode(); return hash; } | public int hashCode() { int hash = method.getName().hashCode(); Class[] types = method.getParameterTypes(); for (int i = 0; i < types.length; i++) hash = hash * 31 + types[i].hashCode(); return hash; } | 35,285 |
public int hashCode() { int hash = method.getName().hashCode(); Class[] types = method.getParameterTypes(); for (int i = 0; i < types.length; i++) hash = hash * 31 + types[i].hashCode(); return hash; } | public int hashCode() { int hash = method.getName().hashCode(); Class[] types = method.getParameterTypes(); for (int i = 0; i < types.length; i++) hash = hash * 31 + types[i].hashCode(); return hash; } | 35,286 |
ProxyType(ClassLoader loader, Class[] interfaces) { this.loader = loader; this.interfaces = interfaces; } | ProxyType(ClassLoader loader, Class[] interfaces) { this.loader = loader; this.interfaces = interfaces; } | 35,287 |
public boolean equals(Object other) { ProxyType pt = (ProxyType) other; if (loader != pt.loader || interfaces.length != pt.interfaces.length) return false; for (int i = 0; i < interfaces.length; i++) if (interfaces[i] != pt.interfaces[i]) return false; return true... | public boolean equals(Object other) { ProxyType pt = (ProxyType) other; if (loader != pt.loader || interfaces.length != pt.interfaces.length) return false; for (int i = 0; i < interfaces.length; i++) if (interfaces[i] != pt.interfaces[i]) return false; return true... | 35,288 |
public boolean equals(Object other) { ProxyType pt = (ProxyType) other; if (loader != pt.loader || interfaces.length != pt.interfaces.length) return false; for (int i = 0; i < interfaces.length; i++) if (interfaces[i] != pt.interfaces[i]) return false; return true... | public boolean equals(Object other) { ProxyType pt = (ProxyType) other; if (loader != pt.loader || interfaces.length != pt.interfaces.length) return false; for (int i = 0; i < interfaces.length; i++) if (interfaces[i] != pt.interfaces[i]) return false; return true... | 35,289 |
public int hashCode() { int hash = loader == null ? 0 : loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; } | public int hashCode() { int hash = loader == null ? 0 : loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; } | 35,290 |
public int hashCode() { int hash = loader == null ? 0 : loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; } | public int hashCode() { int hash = loader == null ? 0 : loader.hashCode(); for (int i = 0; i < interfaces.length; i++) hash = hash * 31 + interfaces[i].hashCode(); return hash; } | 35,291 |
protected Proxy(InvocationHandler handler) { if (handler == null && isProxyClass(getClass())) throw new NullPointerException("invalid handler"); h = handler; } | protected Proxy(InvocationHandler handler) { if (handler == null && isProxyClass(getClass())) throw new NullPointerException("invalid handler"); h = handler; } | 35,292 |
protected Proxy(InvocationHandler handler) { if (handler == null && isProxyClass(getClass())) throw new NullPointerException("invalid handler"); h = handler; } | protected Proxy(InvocationHandler handler) { if (handler == null && isProxyClass(getClass())) throw new NullPointerException("invalid handler"); h = handler; } | 35,293 |
public static InvocationHandler getInvocationHandler(Object proxy) { if (! isProxyClass(proxy.getClass())) throw new IllegalArgumentException("not a proxy instance"); return ((Proxy) proxy).h; } | public static InvocationHandler getInvocationHandler(Object proxy) { if (! isProxyClass(proxy.getClass())) throw new IllegalArgumentException("not a proxy instance"); return ((Proxy) proxy).h; } | 35,294 |
public static synchronized boolean isProxyClass(Class clazz) { if (! Proxy.class.isAssignableFrom(clazz)) return false; // This is a linear search, even though we could do an O(1) search // using new ProxyType(clazz.getClassLoader(), clazz.getInterfaces()). return proxyClasses.containsVa... | public static synchronized boolean isProxyClass(Class clazz) { if (! Proxy.class.isAssignableFrom(clazz)) return false; // This is a linear search, even though we could do an O(1) search // using new ProxyType(clazz.getClassLoader(), clazz.getInterfaces()). return proxyClasses.containsVa... | 35,295 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 35,296 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... | 35,297 |
private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) ObjectCreator.... | private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getCumulatedProperty(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) Obje... | 35,298 |
public TypeCode create_abstract_interface_tc(String id, String name) { generalTypeCode t = new generalTypeCode(TCKind.tk_abstract_interface); t.setName(name); t.setId(id); return t; } | public TypeCode create_abstract_interface_tc(String id, String name) { GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_abstract_interface); t.setName(name); t.setId(id); return t; } | 35,300 |
public TypeCode create_fixed_tc(short digits, short scale) { fixedTypeCode r = new fixedTypeCode(); r.setDigits(digits); r.setScale(scale); return r; } | public TypeCode create_fixed_tc(short digits, short scale) { FixedTypeCode r = new FixedTypeCode(); r.setDigits(digits); r.setScale(scale); return r; } | 35,301 |
public TypeCode create_native_tc(String id, String name) { generalTypeCode t = new generalTypeCode(TCKind.tk_native); t.setName(name); t.setId(id); return t; } | public TypeCode create_native_tc(String id, String name) { GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_native); t.setName(name); t.setId(id); return t; } | 35,302 |
public TypeCode create_recursive_sequence_tc(int bound, int offset) { recordTypeCode r = new recordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... | public TypeCode create_recursive_sequence_tc(int bound, int offset) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... | 35,303 |
public TypeCode create_recursive_sequence_tc(int bound, int offset) { recordTypeCode r = new recordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... | public TypeCode create_recursive_sequence_tc(int bound, int offset) { recordTypeCode r = new recordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... | 35,304 |
public TypeCode create_recursive_tc(String id) { return new recursiveTypeCode(id); } | public TypeCode create_recursive_tc(String id) { return new RecursiveTypeCode(id); } | 35,305 |
public TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type ) { generalTypeCode t = new generalTypeCode(TCKind.tk_value_box); t.setName(name); t.setId(id); t.setContentType(boxed_type); return t; } | public TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type ) { GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_value_box); t.setName(name); t.setId(id); t.setContentType(boxed_type); return t; } | 35,306 |
public TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members ) { recordTypeCode r = new recordTypeCode(TCKind.tk_value); r.setId(id); r.setName(name); r.setTypeModifier(type_modi... | public TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members ) { RecordTypeCode r = new RecordTypeCode(TCKind.tk_value); r.setId(id); r.setName(name); r.setTypeModifier(type_modi... | 35,307 |
public static ORB init() { String orb_cn = getORBName(null, RESTRICTED_ORB); if (orb_cn == null) return Restricted_ORB.Singleton; else return createORB(null, orb_cn); } | public static ORB init() { String orb_cn = getCumulatedProperty(null, RESTRICTED_ORB); if (orb_cn == null) return Restricted_ORB.Singleton; else return createORB(null, orb_cn); } | 35,308 |
public static ORB init() { String orb_cn = getORBName(null, RESTRICTED_ORB); if (orb_cn == null) return Restricted_ORB.Singleton; else return createORB(null, orb_cn); } | public static ORB init() { String orb_cn = getORBName(null, RESTRICTED_ORB); if (orb_cn == null) return OrbRestricted.Singleton; else return createORB(null, orb_cn); } | 35,309 |
public void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); p.setOpaque(true); } | protected void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); p.setOpaque(true); } | 35,310 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.