]> source.dussan.org Git - aspectj.git/commitdiff
take type parameters into account for equality and hashCode
authoracolyer <acolyer>
Fri, 29 Jul 2005 11:14:52 +0000 (11:14 +0000)
committeracolyer <acolyer>
Fri, 29 Jul 2005 11:14:52 +0000 (11:14 +0000)
weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java

index 3cd9a61be1eeb075141f9d3de66a19bddf1f9da6..f187c7031dea3e1ae671a3c0a810d27c456ce0d4 100644 (file)
@@ -207,6 +207,7 @@ public class ExactTypePattern extends TypePattern {
        ExactTypePattern o = (ExactTypePattern)other;
        if (includeSubtypes != o.includeSubtypes) return false;
        if (isVarArgs != o.isVarArgs) return false;     
+       if (!typeParameters.equals(o.typeParameters)) return false;
        return (o.type.equals(this.type) && o.annotationPattern.equals(this.annotationPattern));
     }