@@ -54,8 +54,9 @@ public class BindingReflectionHintsRegistrar {
54
54
55
55
private static final String JACKSON_ANNOTATION = "com.fasterxml.jackson.annotation.JacksonAnnotation" ;
56
56
57
- private static final boolean jacksonAnnotationPresent = ClassUtils .isPresent (JACKSON_ANNOTATION ,
58
- BindingReflectionHintsRegistrar .class .getClassLoader ());
57
+ private static final boolean jacksonAnnotationPresent =
58
+ ClassUtils .isPresent (JACKSON_ANNOTATION , BindingReflectionHintsRegistrar .class .getClassLoader ());
59
+
59
60
60
61
/**
61
62
* Register the necessary reflection hints to bind the specified types.
@@ -95,12 +96,10 @@ private void registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type
95
96
}
96
97
}
97
98
if (clazz .isEnum ()) {
98
- typeHint .withMembers (
99
- MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS ,
99
+ typeHint .withMembers (MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS ,
100
100
MemberCategory .INVOKE_PUBLIC_METHODS );
101
101
}
102
- typeHint .withMembers (
103
- MemberCategory .DECLARED_FIELDS ,
102
+ typeHint .withMembers (MemberCategory .DECLARED_FIELDS ,
104
103
MemberCategory .INVOKE_DECLARED_CONSTRUCTORS );
105
104
for (Method method : clazz .getMethods ()) {
106
105
String methodName = method .getName ();
@@ -137,8 +136,7 @@ private void registerRecordHints(ReflectionHints hints, Set<Type> seen, Method m
137
136
}
138
137
139
138
private void registerPropertyHints (ReflectionHints hints , Set <Type > seen , @ Nullable Method method , int parameterIndex ) {
140
- if (method != null && method .getDeclaringClass () != Object .class &&
141
- method .getDeclaringClass () != Enum .class ) {
139
+ if (method != null && method .getDeclaringClass () != Object .class && method .getDeclaringClass () != Enum .class ) {
142
140
hints .registerMethod (method , ExecutableMode .INVOKE );
143
141
MethodParameter methodParameter = MethodParameter .forExecutable (method , parameterIndex );
144
142
Type methodParameterType = methodParameter .getGenericParameterType ();
@@ -213,6 +211,7 @@ private void registerHintsForClassAttributes(ReflectionHints hints, MergedAnnota
213
211
});
214
212
}
215
213
214
+
216
215
/**
217
216
* Inner class to avoid a hard dependency on Kotlin at runtime.
218
217
*/
0 commit comments