mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
Remove unnecessary check in isBridgedCandidateFor()
In BridgeMethodResolver#isBridgedCandidateFor, candidateMethod is never not bridged, so it's unnecessary to judge whether candidateMethod and bridgeMethod are the same. Closes gh-27862
This commit is contained in:
@@ -98,7 +98,7 @@ public final class BridgeMethodResolver {
|
||||
* checks and can be used quickly filter for a set of possible matches.
|
||||
*/
|
||||
private static boolean isBridgedCandidateFor(Method candidateMethod, Method bridgeMethod) {
|
||||
return (!candidateMethod.isBridge() && !candidateMethod.equals(bridgeMethod) &&
|
||||
return (!candidateMethod.isBridge() &&
|
||||
candidateMethod.getName().equals(bridgeMethod.getName()) &&
|
||||
candidateMethod.getParameterCount() == bridgeMethod.getParameterCount());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user