Consistently declare @⁠Nullable on parameter in equals() implementations

Closes gh-36075

Signed-off-by: 木葉 Scarlet <93977077+mukjepscarlet@users.noreply.github.com>
This commit is contained in:
木葉 Scarlet
2025-12-29 11:43:49 +02:00
committed by Sam Brannen
parent 7212fbe36a
commit d077e043d6
14 changed files with 27 additions and 22 deletions
@@ -731,7 +731,7 @@ public class AdvisedSupport extends ProxyConfig implements Advised {
}
@Override
public boolean equals(Object other) {
public boolean equals(@Nullable Object other) {
return (this == other || (other instanceof AdvisorKeyEntry that &&
this.adviceType == that.adviceType &&
ObjectUtils.nullSafeEquals(this.classFilterKey, that.classFilterKey) &&
@@ -198,7 +198,7 @@ public abstract class ClassFilters {
}
@Override
public boolean equals(Object other) {
public boolean equals(@Nullable Object other) {
return (this == other || (other instanceof NegateClassFilter that &&
this.original.equals(that.original)));
}
@@ -378,7 +378,7 @@ public abstract class MethodMatchers {
}
@Override
public boolean equals(Object other) {
public boolean equals(@Nullable Object other) {
return (this == other || (other instanceof NegateMethodMatcher that &&
this.original.equals(that.original)));
}