Polishing
This commit is contained in:
@@ -157,10 +157,7 @@ public abstract class MethodMatchers {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hashCode = 17;
|
||||
hashCode = 37 * hashCode + this.mm1.hashCode();
|
||||
hashCode = 37 * hashCode + this.mm2.hashCode();
|
||||
return hashCode;
|
||||
return 37 * this.mm1.hashCode() + this.mm2.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,6 +206,12 @@ public abstract class MethodMatchers {
|
||||
}
|
||||
return (this.cf1.equals(otherCf1) && this.cf2.equals(otherCf2));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
// Allow for matching with regular UnionMethodMatcher by providing same hash...
|
||||
return super.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -271,10 +274,7 @@ public abstract class MethodMatchers {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hashCode = 17;
|
||||
hashCode = 37 * hashCode + this.mm1.hashCode();
|
||||
hashCode = 37 * hashCode + this.mm2.hashCode();
|
||||
return hashCode;
|
||||
return 37 * this.mm1.hashCode() + this.mm2.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user