48
48
public abstract class ReflectionUtils {
49
49
50
50
/**
51
- * Naming prefix for CGLIB-renamed methods.
52
- * @see #isCglibRenamedMethod
51
+ * Pre-built MethodFilter that matches all non-bridge methods.
52
+ * @since 3.0
53
+ * @deprecated as of 5.0.11, in favor of a custom {@link MethodFilter}
53
54
*/
54
- private static final String CGLIB_RENAMED_METHOD_PREFIX = "CGLIB$" ;
55
-
56
- private static final Method [] NO_METHODS = {} ;
55
+ @ Deprecated
56
+ public static final MethodFilter NON_BRIDGED_METHODS =
57
+ ( method -> ! method . isBridge ()) ;
57
58
58
- private static final Field [] NO_FIELDS = {};
59
+ /**
60
+ * Pre-built MethodFilter that matches all non-bridge non-synthetic methods
61
+ * which are not declared on {@code java.lang.Object}.
62
+ * @since 3.0.5
63
+ */
64
+ public static final MethodFilter USER_DECLARED_METHODS =
65
+ (method -> (!method .isBridge () && !method .isSynthetic () && method .getDeclaringClass () != Object .class ));
59
66
60
67
/**
61
68
* Pre-built FieldFilter that matches all non-static, non-final fields.
@@ -65,18 +72,14 @@ public abstract class ReflectionUtils {
65
72
66
73
67
74
/**
68
- * Pre-built MethodFilter that matches all non-bridge methods.
75
+ * Naming prefix for CGLIB-renamed methods.
76
+ * @see #isCglibRenamedMethod
69
77
*/
70
- public static final MethodFilter NON_BRIDGED_METHODS =
71
- (method -> !method .isBridge ());
78
+ private static final String CGLIB_RENAMED_METHOD_PREFIX = "CGLIB$" ;
72
79
80
+ private static final Method [] NO_METHODS = {};
73
81
74
- /**
75
- * Pre-built MethodFilter that matches all non-bridge non-synthetic methods
76
- * which are not declared on {@code java.lang.Object}.
77
- */
78
- public static final MethodFilter USER_DECLARED_METHODS =
79
- (method -> (!method .isBridge () && !method .isSynthetic () && method .getDeclaringClass () != Object .class ));
82
+ private static final Field [] NO_FIELDS = {};
80
83
81
84
82
85
/**
@@ -871,5 +874,4 @@ public interface FieldFilter {
871
874
boolean matches (Field field );
872
875
}
873
876
874
-
875
877
}
0 commit comments