From c4e4c3706e1ac7aae2e4a5032aa8e91cb6b14c95 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 11 Jun 2010 18:19:22 +0000 Subject: [PATCH] itd inners --- .../weaver/NewMemberClassTypeMunger.java | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java b/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java index e7576e96a..c086c2c86 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java @@ -23,7 +23,7 @@ import org.aspectj.bridge.ISourceLocation; public class NewMemberClassTypeMunger extends ResolvedTypeMunger { private UnresolvedType targetType; - private String memberTypeName; + private String memberTypeName; // short (last part of) name private int version = 1; // 1.6.9m2 public NewMemberClassTypeMunger(UnresolvedType targetType, String memberTypeName) { @@ -67,4 +67,24 @@ public class NewMemberClassTypeMunger extends ResolvedTypeMunger { return memberTypeName; } + public int hashCode() { + int result = 17; + result = 37 * result + kind.hashCode(); + result = 37 * result + memberTypeName.hashCode(); + result = 37 * result + targetType.hashCode(); + result = 37 * result + ((typeVariableAliases == null) ? 0 : typeVariableAliases.hashCode()); + return result; + } + + public boolean equals(Object other) { + if (!(other instanceof NewMemberClassTypeMunger)) { + return false; + } + NewMemberClassTypeMunger o = (NewMemberClassTypeMunger) other; + return ((kind == null) ? (o.kind == null) : kind.equals(o.kind)) + && memberTypeName.equals(o.memberTypeName) + && targetType.equals(o.targetType) + && ((typeVariableAliases == null) ? (o.typeVariableAliases == null) : typeVariableAliases + .equals(o.typeVariableAliases)); + } } \ No newline at end of file -- 2.39.5