From: chiba Date: Tue, 18 Jul 2006 14:59:22 +0000 (+0000) Subject: reformatted. X-Git-Tag: rel_3_17_1_ga~332 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=722509666b5e7a9ceef5c3513fa3d70ed0a3ac74;p=javassist.git reformatted. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@300 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java index be66df4f..9d8e49bc 100644 --- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java +++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java @@ -63,6 +63,10 @@ public class AnnotationImpl implements InvocationHandler { /** * Executes a method invocation on a proxy instance. + * The implementations of toString, equals, + * and hashCode are directly supplied by the + * AnnotationImpl. The annotationType method + * is also available on the proxy instance. */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable @@ -85,11 +89,9 @@ public class AnnotationImpl implements InvocationHandler { else if ("hashCode".equals(name)) return new Integer(hashCode()); } - else if ("annotationType".equals(name) && method.getParameterTypes().length == 0) - { + else if ("annotationType".equals(name) + && method.getParameterTypes().length == 0) return classLoader.loadClass(getTypeName()); - } - MemberValue mv = annotation.getMemberValue(name); if (mv == null)