summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-02-04 23:32:52 +0000
committeradrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-02-04 23:32:52 +0000
commit521d2bc9779218ff95b83b9443f7e3d164bcd450 (patch)
tree28ec21a29f2c15a995a9343e2858e6ed9ac93016
parent3921e76c519e2fad34e48e9b7e2b9ef5d4ec24f2 (diff)
downloadjavassist-521d2bc9779218ff95b83b9443f7e3d164bcd450.tar.gz
javassist-521d2bc9779218ff95b83b9443f7e3d164bcd450.zip
I need an eclipse option that disallows autoboxing. :-)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@240 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--src/main/javassist/bytecode/annotation/AnnotationImpl.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
index 60004ae1..91e8989b 100644
--- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java
+++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
@@ -60,14 +60,17 @@ class AnnotationImpl implements InvocationHandler {
{
Object obj = args[0];
if (obj == null || obj instanceof Proxy == false)
- return false;
+ return Boolean.FALSE;
Object other = Proxy.getInvocationHandler(obj);
- return this.equals(other);
+ if (this.equals(other))
+ return Boolean.TRUE;
+ else
+ return Boolean.FALSE;
}
if ("toString".equals(name))
return annotation.getTypeName() + '@' + hashCode();
if ("hashCode".equals(name))
- return hashCode();
+ return new Integer(hashCode());
}
MemberValue mv = annotation.getMemberValue(name);
if (mv == null)