Polishing
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ public class StandardEvaluationContext implements EvaluationContext {
|
||||
@Override
|
||||
public TypeConverter getTypeConverter() {
|
||||
if (this.typeConverter == null) {
|
||||
this.typeConverter = new StandardTypeConverter();
|
||||
this.typeConverter = new StandardTypeConverter();
|
||||
}
|
||||
return this.typeConverter;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ public class StandardEvaluationContext implements EvaluationContext {
|
||||
this.variables.put(name, value);
|
||||
}
|
||||
|
||||
public void setVariables(Map<String,Object> variables) {
|
||||
public void setVariables(Map<String, Object> variables) {
|
||||
this.variables.putAll(variables);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user