Polishing

This commit is contained in:
Juergen Hoeller
2018-11-05 23:51:54 +01:00
parent f002ebd976
commit 79e7ba71bb
2 changed files with 16 additions and 14 deletions

View File

@@ -801,20 +801,9 @@ public abstract class ReflectionUtils {
}
/**
* Pre-built FieldFilter that matches all non-static, non-final fields.
*/
public static final FieldFilter COPYABLE_FIELDS = new FieldFilter() {
@Override
public boolean matches(Field field) {
return !(Modifier.isStatic(field.getModifiers()) || Modifier.isFinal(field.getModifiers()));
}
};
/**
* Pre-built MethodFilter that matches all non-bridge methods.
* @since 3.0
*/
public static final MethodFilter NON_BRIDGED_METHODS = new MethodFilter() {
@@ -828,6 +817,7 @@ public abstract class ReflectionUtils {
/**
* Pre-built MethodFilter that matches all non-bridge methods
* which are not declared on {@code java.lang.Object}.
* @since 3.0.5
*/
public static final MethodFilter USER_DECLARED_METHODS = new MethodFilter() {
@@ -837,4 +827,16 @@ public abstract class ReflectionUtils {
}
};
/**
* Pre-built FieldFilter that matches all non-static, non-final fields.
*/
public static final FieldFilter COPYABLE_FIELDS = new FieldFilter() {
@Override
public boolean matches(Field field) {
return !(Modifier.isStatic(field.getModifiers()) || Modifier.isFinal(field.getModifiers()));
}
};
}