Filter synthetic in ReflectionUtils#USER_DECLARED_METHODS
Issue: SPR-16823
This commit is contained in:
parent
e0ccbcbb66
commit
2c85be333c
|
|
@ -862,10 +862,10 @@ public abstract class ReflectionUtils {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pre-built MethodFilter that matches all non-bridge methods
|
* Pre-built MethodFilter that matches all non-bridge non-synthetic methods
|
||||||
* which are not declared on {@code java.lang.Object}.
|
* which are not declared on {@code java.lang.Object}.
|
||||||
*/
|
*/
|
||||||
public static final MethodFilter USER_DECLARED_METHODS =
|
public static final MethodFilter USER_DECLARED_METHODS =
|
||||||
(method -> (!method.isBridge() && method.getDeclaringClass() != Object.class));
|
(method -> (!method.isBridge() && !method.isSynthetic() && method.getDeclaringClass() != Object.class));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue