mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish JacksonModulesRuntimeHints
Closes gh-29001
This commit is contained in:
+3
-5
@@ -41,10 +41,8 @@ class JacksonModulesRuntimeHints implements RuntimeHintsRegistrar {
|
||||
}
|
||||
|
||||
private void registerType(ReflectionHints reflectionHints, String className, ClassLoader classLoader) {
|
||||
if (ClassUtils.isPresent(className, classLoader)) {
|
||||
reflectionHints.registerType(TypeReference.of(className),
|
||||
builder -> builder.onReachableType(TypeReference.of(Jackson2ObjectMapperBuilder.class))
|
||||
.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS));
|
||||
}
|
||||
reflectionHints.registerTypeIfPresent(classLoader, className,
|
||||
builder -> builder.onReachableType(TypeReference.of(Jackson2ObjectMapperBuilder.class))
|
||||
.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user