]> source.dussan.org Git - javassist.git/commitdiff
updated javadoc comments.
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 2 Feb 2007 10:52:45 +0000 (10:52 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 2 Feb 2007 10:52:45 +0000 (10:52 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@345 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

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

index 34f021e10bf66a25876e2933b2cb353573e02a8f..a2cef9a7c9dc56c08319735689aacf37f613df24 100644 (file)
@@ -208,6 +208,9 @@ public class Annotation {
         members.put(name, pair);
     }
 
+    /**
+     * Returns a string representation of the annotation.
+     */
     public String toString() {
         StringBuffer buf = new StringBuffer("@");
         buf.append(getTypeName());
@@ -313,7 +316,11 @@ public class Annotation {
             pair.value.write(writer);
         }
     }
-    
+
+    /**
+     * Returns true if the given object represents the same annotation
+     * as this object.  The equality test checks the member values.
+     */
     public boolean equals(Object obj) {
         if (obj == this)
             return true;
index e83812f2e5e1ebc3b4ba54f4d25fd4887c0275dc..1eb92959d118d86156f04065744f7662a92db958 100644 (file)
@@ -176,7 +176,10 @@ public class AnnotationImpl implements InvocationHandler {
         throw new RuntimeException("no default value: " + classname + "."
                                    + name + "()");
     }
-    
+
+    /**
+     * Returns a hash code value for this object.
+     */
     public int hashCode() {
         if (cachedHashCode == Integer.MIN_VALUE) {
             int hashCode = 0;
@@ -221,7 +224,7 @@ public class AnnotationImpl implements InvocationHandler {
     }
     
     /**
-     * Check that another annotation equals ourselves
+     * Check that another annotation equals ourselves.
      * 
      * @param obj the other annotation
      * @return the true when equals false otherwise