diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-02-02 10:52:45 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-02-02 10:52:45 +0000 |
commit | c04c787ab1c4416598b7180b35e94a2b63d07d0c (patch) | |
tree | c6af9d40c96d4909ec5b5f45a86c859786651629 | |
parent | 6ba99484b3f80a4c9f8956f0e7010257e741d9dc (diff) | |
download | javassist-c04c787ab1c4416598b7180b35e94a2b63d07d0c.tar.gz javassist-c04c787ab1c4416598b7180b35e94a2b63d07d0c.zip |
updated javadoc comments.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@345 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/bytecode/annotation/Annotation.java | 9 | ||||
-rw-r--r-- | src/main/javassist/bytecode/annotation/AnnotationImpl.java | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index 34f021e1..a2cef9a7 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -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; diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java index e83812f2..1eb92959 100644 --- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java +++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java @@ -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 |