]> source.dussan.org Git - javassist.git/commitdiff
I need an eclipse option that disallows autoboxing. :-)
authoradrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 4 Feb 2006 23:32:52 +0000 (23:32 +0000)
committeradrian <adrian@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 4 Feb 2006 23:32:52 +0000 (23:32 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@240 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/annotation/AnnotationImpl.java

index 60004ae171efd2e7ac195ad2ada258c5fdfdbe05..91e8989b7bcb5c3e0f0dfa9244341f11e3e1c308 100644 (file)
@@ -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)