File tree 1 file changed +3
-3
lines changed
spring-core/src/main/java/org/springframework/core/annotation
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -214,8 +214,8 @@ private boolean isOverrideFor(Method candidate) {
214
214
215
215
@ Override
216
216
public boolean equals (@ Nullable Object other ) {
217
- return (this == other || (other != null && getClass () == other . getClass () &&
218
- this .method .equals ((( AnnotatedMethod ) other ) .method )));
217
+ return (this == other || (other instanceof AnnotatedMethod otherHandlerMethod &&
218
+ this .method .equals (otherHandlerMethod .method )));
219
219
}
220
220
221
221
@ Override
You can’t perform that action at this time.
0 commit comments