summaryrefslogtreecommitdiffstats
path: root/weaver/src/org/aspectj/weaver/JoinPointSignature.java
diff options
context:
space:
mode:
Diffstat (limited to 'weaver/src/org/aspectj/weaver/JoinPointSignature.java')
-rw-r--r--weaver/src/org/aspectj/weaver/JoinPointSignature.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/JoinPointSignature.java b/weaver/src/org/aspectj/weaver/JoinPointSignature.java
index d4276f9a6..97384c45f 100644
--- a/weaver/src/org/aspectj/weaver/JoinPointSignature.java
+++ b/weaver/src/org/aspectj/weaver/JoinPointSignature.java
@@ -371,4 +371,15 @@ public class JoinPointSignature implements ResolvedMember {
realMember.resetReturnTypeToObjectArray();
}
+ public boolean equals(Object obj) {
+ if (! (obj instanceof JoinPointSignature)) return false;
+ JoinPointSignature other = (JoinPointSignature) obj;
+ if (!realMember.equals(other.realMember)) return false;
+ if (!substituteDeclaringType.equals(other.substituteDeclaringType)) return false;
+ return true;
+ }
+
+ public int hashCode() {
+ return 17 + (37 * realMember.hashCode()) + (37 * substituteDeclaringType.hashCode());
+ }
}