rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
} | private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
{ | private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | ||
{ | public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | ||
{ | public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
{ | public Object sign() { if (md == null || privateKey == null) { throw new IllegalStateException(); } return generateSignature(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | public Object sign() { if (md == null || privateKey == null) { throw new IllegalStateException(); } return generateSignature(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
{ | public void update(byte b) { if (md == null) { throw new IllegalStateException(); } md.update(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | public void update(byte b) { if (md == null) { throw new IllegalStateException(); } md.update(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
{ | public boolean verify(Object sig) { if (md == null || publicKey == null) { throw new IllegalStateException(); } return verifySignature(sig); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
} | public boolean verify(Object sig) { if (md == null || publicKey == null) { throw new IllegalStateException(); } return verifySignature(sig); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/BaseSignature.java/clean/core/src/classpath/gnu/gnu/java/security/sig/BaseSignature.java | |
public ActivationID(Activator activator) { this.activator = activator; } | public ActivationID(Activator an_activator) { activator = an_activator; uid = new UID(); } | public ActivationID(Activator activator) { this.activator = activator;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/ActivationID.java/clean/core/src/classpath/java/java/rmi/activation/ActivationID.java |
public boolean equals(Object obj) { if (obj instanceof ActivationID) { ActivationID that = (ActivationID)obj; if (this.activator.equals(that.activator)) { return (true); } } return (false); } | public boolean equals(Object obj) { if (obj instanceof ActivationID) { ActivationID that = (ActivationID) obj; return eq(uid, that.uid); } else return false; } | public boolean equals(Object obj) { if (obj instanceof ActivationID) { ActivationID that = (ActivationID)obj; if (this.activator.equals(that.activator)) { return (true); } } return (false);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/ActivationID.java/clean/core/src/classpath/java/java/rmi/activation/ActivationID.java |
public int hashCode() { return (activator.hashCode()); } | public int hashCode() { return uid == null ? 0 : uid.hashCode(); } | public int hashCode() { return (activator.hashCode());} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/ActivationID.java/clean/core/src/classpath/java/java/rmi/activation/ActivationID.java |
public Object get() throws java.io.IOException, java.lang.ClassNotFoundException { if(objBytes == null) | public Object get() throws IOException, ClassNotFoundException { if (objBytes == null) | public Object get() throws java.io.IOException, java.lang.ClassNotFoundException{ if(objBytes == null) return null; RMIMarshalledObjectInputStream stream = new RMIMarshalledObjectInputStream(objBytes, locBytes); return stream.readObject();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/MarshalledObject.java/buggy/core/src/classpath/java/java/rmi/MarshalledObject.java |
} | } | public Object get() throws java.io.IOException, java.lang.ClassNotFoundException{ if(objBytes == null) return null; RMIMarshalledObjectInputStream stream = new RMIMarshalledObjectInputStream(objBytes, locBytes); return stream.readObject();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/MarshalledObject.java/buggy/core/src/classpath/java/java/rmi/MarshalledObject.java |
return (int) (unique ^ time ^ machineId); | return (int) (unique ^ time ^ count); | public int hashCode() { return (int) (unique ^ time ^ machineId); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/UID.java/buggy/core/src/classpath/java/java/rmi/server/UID.java |
return ("[UID: " + unique + "," + time + "," + count + "]"); | int max = Character.MAX_RADIX; long lc = (count + Short.MIN_VALUE) & 0xFFFF; return Long.toString(time, max) + ":" + Long.toString(unique, max) + ":" + Long.toString(lc, max); | public String toString() { return ("[UID: " + unique + "," + time + "," + count + "]"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/UID.java/buggy/core/src/classpath/java/java/rmi/server/UID.java |
commitsOnValidEdit = true; | commitsOnValidEdit = false; | public DefaultFormatter() { commitsOnValidEdit = true; overwriteMode = true; allowsInvalid = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/DefaultFormatter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultFormatter.java |
{ | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
} | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
{ | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
} | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgum... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
{ | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
} | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
{ | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
} | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PUBLIC_KEY[3]) { throw new IllegalArgumentExc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
if (!(key instanceof GnuRSAPrivateKey)) { | if (! (key instanceof GnuRSAPrivateKey)) | public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
} | public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof GnuRSAPrivateKey)) { throw new IllegalArgumentException("key"); } GnuRSAPrivateKey rsaKey = (GnuRSAPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
if (!(key instanceof GnuRSAPublicKey)) { | if (! (key instanceof GnuRSAPublicKey)) | public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java |
} | public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | |
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof GnuRSAPublicKey)) { throw new IllegalArgumentException("key"); } GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_RSA_PUB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java | ||
public BigInteger(int signum, byte[] magnitude) | private BigInteger() | public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java |
if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; } words = byteArrayToIntArray(magnitude, 0); BigInteger result = make(words, words... | public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java | |
/* Link SoftByteCodes_arrayStoreWriteBarrier */ refJava = os.getObjectRef(sbcClass.getMethod("arrayStoreWriteBarrier", "(Ljava/lang/Object;ILjava/lang/Object;)V")); os.getObjectRef(new Label("SoftByteCodes_arrayStoreWriteBarrier")).link(refJava); /* Link SoftByteCodes_putfieldWriteBarrier */ refJava = os.getObjectRef(... | final VmType vmThreadClass = loadClass(VmThread.class); | protected void linkNativeSymbols(NativeStream os) throws ClassNotFoundException, UnresolvedObjectRefException { NativeStream.ObjectRef refJava; /* Link VmMethod_compile */ VmType vmMethodClass = loadClass(VmMethod.class); refJava = os.getObjectRef(vmMethodClass.getMethod("recompile", "()V")); os.getObjectRef(new ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4a473e34ef840c188ac5bf477d7d4e303019638/BootImageBuilder.java/buggy/builder/src/builder/org/jnode/build/x86/BootImageBuilder.java |
public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); | final VmMethod getMethod(String name, String signature, boolean onlyThisClass, boolean searchInterfaces, int hashCode) { /* Search in my own method table */ final VmMethod[] mt = this.methodTable; if (mt != null) { final int count = mt.length; for (int i = 0; i < count; i++) { final VmMethod mts = mt[i]; /** * Use the ... | public final VmMethod getMethod(String name, String signature) { return getMethod(name, signature, false, true, VmMember.calcHashCode( name, signature)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java |
public final VmField getField(String name) { return getField(name, null); | public final VmField getField(String name, String signature) { VmField f = getDeclaredField(name, signature); if (f != null) { return f; } if (superClass != null) { f = superClass.getField(name, signature); if (f != null) { return f; } } final int cnt = getNoInterfaces(); for (int i = 0; i < cnt; i++) { f = allInterfac... | public final VmField getField(String name) { return getField(name, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java |
if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) || tag.equals(HTML.Tag.H1) || tag.equals(HTML.Tag.H2) || tag.equals(HTML.Tag.H3) || tag.equals(HTML.Tag.H4) || tag.equals(HTML.Tag.H5) || tag.equals(HTML.Tag.H6) || tag.equals(HTML.Tag.DT)) | if (tag == HTML.Tag.IMPLIED || tag == HTML.Tag.P || tag == HTML.Tag.H1 || tag == HTML.Tag.H2 || tag == HTML.Tag.H3 || tag == HTML.Tag.H4 || tag == HTML.Tag.H5 || tag == HTML.Tag.H6 || tag == HTML.Tag.DT) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.LI) || tag.equals(HTML.Tag.DL) || tag.equals(HTML.Tag.DD) || tag.equals(HTML.Tag.BODY) || tag.equals(HTML.Tag.HTML) || tag.equals(HTML.Tag.CENTER) || tag.equals(HTML.Tag.DIV) || tag.equals(HTML.Tag.BLOCKQUOTE) || tag.equals(HTML.Tag.PRE)) | else if (tag == HTML.Tag.LI || tag == HTML.Tag.DL || tag == HTML.Tag.DD || tag == HTML.Tag.BODY || tag == HTML.Tag.HTML || tag == HTML.Tag.CENTER || tag == HTML.Tag.DIV || tag == HTML.Tag.BLOCKQUOTE || tag == HTML.Tag.PRE || tag == HTML.Tag.FORM || tag == HTML.Tag.TD || tag == HTML.Tag.TH) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.IMG)) | else if (tag == HTML.Tag.TR) view = new BlockView(element, View.X_AXIS); else if (tag == HTML.Tag.IMG) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.CONTENT)) | else if (tag == HTML.Tag.CONTENT) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.TABLE)) | else if (tag == HTML.Tag.TABLE) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.TD)) view = new ParagraphView(element); else if (tag.equals(HTML.Tag.HR)) | else if (tag == HTML.Tag.HR) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.BR)) | else if (tag == HTML.Tag.BR) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
/* else if (tag.equals(HTML.Tag.MENU) || tag.equals(HTML.Tag.DIR) || tag.equals(HTML.Tag.UL) || tag.equals(HTML.Tag.OL)) | else if (tag == HTML.Tag.MENU || tag == HTML.Tag.DIR || tag == HTML.Tag.UL || tag == HTML.Tag.OL) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.INPUT) || tag.equals(HTML.Tag.SELECT) || tag.equals(HTML.Tag.TEXTAREA)) view = new FormView(element); else if (tag.equals(HTML.Tag.OBJECT)) | else if (tag == HTML.Tag.FRAMESET) view = new FrameSetView(element); else if (tag == HTML.Tag.FRAME) view = new FrameView(element); else if (tag == HTML.Tag.OBJECT) | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
else if (tag.equals(HTML.Tag.FRAMESET)) view = new FrameSetView(element); else if (tag.equals(HTML.Tag.FRAME)) view = new FrameView(element); */ | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
System.err.println("missing tag->view mapping for: " + element); | public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
Object source = ae.getSource(); if (source instanceof JEditorPane) | JEditorPane source = getEditor(ae); if (source != null) | public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (HTMLDocument) d, 0, html, 0, 0, addTag); | HTMLDocument d = getHTMLDocument(source); int offset = source.getSelectionStart(); int length = d.getLength(); boolean inserted = true; if (! tryInsert(source, d, offset, parentTag, addTag)) { inserted = tryInsert(source, d, offset, alternateParentTag, alternateAddTag); } if (inserted) adjustSelection(source, d, offset... | public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
public void actionPerformed(ActionEvent ae) { Object source = ae.getSource(); if (source instanceof JEditorPane) { JEditorPane pane = ((JEditorPane) source); Document d = pane.getDocument(); if (d instanceof HTMLDocument) insertHTML(pane, (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | ||
throws NotImplementedException | protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) thro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
/* As its name implies, this protected method is used when HTML is inserted at a boundary. (A boundary in this case is an offset in doc that exactly matches the beginning offset of the parentTag.) It performs the extra work required to keep the tag stack in shape and then calls insertHTML(). The editor and doc argu- me... | insertAtBoundry(editor, doc, offset, insertElement, html, parentTag, addTag); | protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) thro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
insertAtBoundary(editor, doc, offset, insertElement, html, parentTag, addTag); | Element parent = insertElement; Element el; if (offset > 0 || insertElement == null) { el = doc.getDefaultRootElement(); while (el != null && el.getStartOffset() != offset && ! el.isLeaf()) el = el.getElement(el.getElementIndex(offset)); parent = el != null ? el.getParentElement() : null; } if (parent != null) { int p... | protected void insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag) { in... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
protected void activateLink(int pos, JEditorPane editor) | protected void activateLink(int pos, JEditorPane editor) | protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
/* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ | activateLink(pos, editor); | protected void activateLink(int pos, JEditorPane editor) { /* This method creates and fires a HyperlinkEvent if the document is an instance of HTMLDocument and the href tag of the link is not null. */ // FIXME: Not implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
/* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ | JEditorPane editor = (JEditorPane) e.getSource(); if (! editor.isEditable() && SwingUtilities.isLeftMouseButton(e)) { Point loc = e.getPoint(); int pos = editor.viewToModel(loc); if (pos >= 0) activateLink(pos, editor, e.getX(), e.getY()); } | public void mouseClicked(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
/* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ | public void mouseDragged(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
/* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ | JEditorPane editor = (JEditorPane) e.getSource(); HTMLEditorKit kit = (HTMLEditorKit) editor.getEditorKit(); if (! editor.isEditable()) { Document doc = editor.getDocument(); if (doc instanceof HTMLDocument) { Cursor newCursor = kit.getDefaultCursor(); HTMLDocument htmlDoc = (HTMLDocument) doc; Point loc = e.getPoint()... | public void mouseMoved(MouseEvent e) { /* These MouseInputAdapter methods generate mouse appropriate events around hyperlinks (entering, exiting, and activating). */ // FIXME: Not implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
linkController = new LinkController(); autoFormSubmission = true; | public HTMLEditorKit() { // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
return (HTMLEditorKit) super.clone(); | HTMLEditorKit copy = (HTMLEditorKit) super.clone(); copy.linkController = new LinkController(); return copy; | public Object clone() { // FIXME: Need to clone all fields return (HTMLEditorKit) super.clone(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
HTMLDocument document = new HTMLDocument(getStyleSheet()); | StyleSheet styleSheet = getStyleSheet(); StyleSheet ss = new StyleSheet(); ss.addStyleSheet(styleSheet); HTMLDocument document = new HTMLDocument(ss); | public Document createDefaultDocument() { HTMLDocument document = new HTMLDocument(getStyleSheet()); document.setParser(getParser()); return document; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
document.setAsynchronousLoadPriority(4); document.setTokenThreshold(100); | public Document createDefaultDocument() { HTMLDocument document = new HTMLDocument(getStyleSheet()); document.setParser(getParser()); return document; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | |
c.removeMouseListener(mouseListener); mouseListener = null; | c.removeMouseListener(linkController); c.removeMouseMotionListener(linkController); | public void deinstall(JEditorPane c) { super.deinstall(c); c.removeMouseListener(mouseListener); mouseListener = null; editorPane = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
parser = new GnuParserDelegator(HTML_401Swing.getInstance()); | parser = new GnuParserDelegator(HTML_401F.getInstance()); | protected Parser getParser() { if (parser == null) { parser = new GnuParserDelegator(HTML_401Swing.getInstance()); } return parser; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
InputStream in = getClass().getResourceAsStream(DEFAULT_CSS); | Class c = HTMLEditorKit.class; InputStream in = c.getResourceAsStream(DEFAULT_CSS); | public StyleSheet getStyleSheet() { if (styleSheet == null) { try { styleSheet = new StyleSheet(); InputStream in = getClass().getResourceAsStream(DEFAULT_CSS); InputStreamReader r = new InputStreamReader(in); styleSheet.loadRules(r, null); r.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
mouseListener = new LinkController(); c.addMouseListener(mouseListener); | c.addMouseListener(linkController); c.addMouseMotionListener(linkController); | public void install(JEditorPane c) { super.install(c); mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c; // FIXME: need to set up hyperlinklistener object } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
public void install(JEditorPane c) { super.install(c); mouseListener = new LinkController(); c.addMouseListener(mouseListener); editorPane = c; // FIXME: need to set up hyperlinklistener object } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java | ||
out.write(doc.getText(pos, len)); | HTMLWriter writer = new HTMLWriter(out, (HTMLDocument) doc, pos, len); writer.write(); } else if (doc instanceof StyledDocument) { MinimalHTMLWriter writer = new MinimalHTMLWriter(out, (StyledDocument) doc, pos, len); writer.write(); | public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException { if (doc instanceof HTMLDocument) { // FIXME: Not implemented. Use HTMLWriter. out.write(doc.getText(pos, len)); } else super.write(out, doc, pos, len); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.