Przeglądaj źródła

I need an eclipse option that disallows autoboxing. :-)


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@240 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
adrian 18 lat temu
rodzic
commit
521d2bc977

+ 6
- 3
src/main/javassist/bytecode/annotation/AnnotationImpl.java Wyświetl plik

@@ -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)

Ładowanie…
Anuluj
Zapisz