@Override public boolean equalsIgnoringTypeParams(final TypeSignature other) { if (!(other instanceof ArrayTypeSignature)) { return false; } final ArrayTypeSignature o = (ArrayTypeSignature) other; return o.elementTypeSignature.equalsIgnoringTypeParams(this.elementTypeSignature) && o.numDims == this.numDims; }
@Override public boolean equalsIgnoringTypeParams(final TypeSignature other) { if (other instanceof TypeVariableSignature) { // Compare class type signature to type variable -- the logic for this // is implemented in TypeVariableSignature, and is not duplicated here return other.equalsIgnoringTypeParams(this); } if (!(other instanceof ClassRefTypeSignature)) { return false; } final ClassRefTypeSignature o = (ClassRefTypeSignature) other; if (o.suffixes.equals(this.suffixes)) { return o.className.equals(this.className); } else { return o.getFullyQualifiedClassName().equals(this.getFullyQualifiedClassName()); } }