From 521d2bc9779218ff95b83b9443f7e3d164bcd450 Mon Sep 17 00:00:00 2001 From: adrian Date: Sat, 4 Feb 2006 23:32:52 +0000 Subject: [PATCH] I need an eclipse option that disallows autoboxing. :-) git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@240 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- .../javassist/bytecode/annotation/AnnotationImpl.java | 9 ++++++--- 1 file 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) -- 2.39.5