diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/bytecode/analysis/MultiType.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/analysis/MultiType.java b/src/main/javassist/bytecode/analysis/MultiType.java index 7baa661a..378b8d03 100644 --- a/src/main/javassist/bytecode/analysis/MultiType.java +++ b/src/main/javassist/bytecode/analysis/MultiType.java @@ -281,6 +281,14 @@ public class MultiType extends Type { return resolved; } + + @Override + public int hashCode() { + if (resolved != null) + return resolved.hashCode(); + + return interfaces.keySet().hashCode(); + } public boolean equals(Object o) { if (! (o instanceof MultiType)) |