MethodParameter.equals accepts subclasses pointing to same target declaration again

Issue: SPR-14438
This commit is contained in:
Juergen Hoeller
2016-07-14 09:51:37 +02:00
parent 04e9c2bf0c
commit dd65689e0a
2 changed files with 4 additions and 3 deletions

View File

@@ -579,7 +579,7 @@ public class MethodParameter {
if (this == other) {
return true;
}
if (other == null || getClass() != other.getClass()) {
if (!(other instanceof MethodParameter)) {
return false;
}
MethodParameter otherParam = (MethodParameter) other;