Make BindingReflectionHintsRegistrar protected methods private
In order to keep the maximum of flexibility, this commit makes shouldSkipType and shouldSkipMembers methods private. That will allow for example to refactor BindingReflectionHintsRegistrar in order to support skipping custom classes specified via @RegisterReflectionForBinding without having to subclass it. See gh-29279
This commit is contained in:
parent
4eca87baa3
commit
7b4ff5ea74
|
@ -63,21 +63,11 @@ public class BindingReflectionHintsRegistrar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private boolean shouldSkipType(Class<?> type) {
|
||||||
* Return whether the type should be skipped.
|
|
||||||
* @param type the type to evaluate
|
|
||||||
* @return {@code true} if the type should be skipped
|
|
||||||
*/
|
|
||||||
protected boolean shouldSkipType(Class<?> type) {
|
|
||||||
return type.isPrimitive() || type == Object.class;
|
return type.isPrimitive() || type == Object.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private boolean shouldSkipMembers(Class<?> type) {
|
||||||
* Return whether the members of the type should be skipped.
|
|
||||||
* @param type the type to evaluate
|
|
||||||
* @return {@code true} if the members of the type should be skipped
|
|
||||||
*/
|
|
||||||
protected boolean shouldSkipMembers(Class<?> type) {
|
|
||||||
return type.getCanonicalName().startsWith("java.") || type.isArray();
|
return type.getCanonicalName().startsWith("java.") || type.isArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue