diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/bytecode/annotation/Annotation.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/annotation/Annotation.java b/src/main/javassist/bytecode/annotation/Annotation.java index 10ceb8ee..d19f6f56 100644 --- a/src/main/javassist/bytecode/annotation/Annotation.java +++ b/src/main/javassist/bytecode/annotation/Annotation.java @@ -331,6 +331,12 @@ public class Annotation { } } + @Override + public int hashCode() { + return getTypeName().hashCode() + + (members == null ? 0 : members.hashCode()); + } + /** * Returns true if the given object represents the same annotation * as this object. The equality test checks the member values. |