[jboss-cvs] javassist/src/main/javassist/bytecode/annotation ...
Shigeru Chiba
chiba at is.titech.ac.jp
Tue Jul 18 10:59:22 EDT 2006
User: chiba
Date: 06/07/18 10:59:22
Modified: src/main/javassist/bytecode/annotation AnnotationImpl.java
Log:
reformatted.
Revision Changes Path
1.9 +6 -4 javassist/src/main/javassist/bytecode/annotation/AnnotationImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AnnotationImpl.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/annotation/AnnotationImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- AnnotationImpl.java 18 Jul 2006 09:35:36 -0000 1.8
+++ AnnotationImpl.java 18 Jul 2006 14:59:22 -0000 1.9
@@ -63,6 +63,10 @@
/**
* Executes a method invocation on a proxy instance.
+ * The implementations of <code>toString</code>, <code>equals</code>,
+ * and <code>hashCode</code> are directly supplied by the
+ * <code>AnnotationImpl</code>. The <code>annotationType</code> method
+ * is also available on the proxy instance.
*/
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable
@@ -85,11 +89,9 @@
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)
More information about the jboss-cvs-commits
mailing list