@@ -54,8 +54,9 @@ public class BindingReflectionHintsRegistrar {
5454
5555private  static  final  String  JACKSON_ANNOTATION  = "com.fasterxml.jackson.annotation.JacksonAnnotation" ;
5656
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+ 
5960
6061/** 
6162 * Register the necessary reflection hints to bind the specified types. 
@@ -95,12 +96,10 @@ private void registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type
9596}
9697}
9798if  (clazz .isEnum ()) {
98- typeHint .withMembers (
99- MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS ,
99+ typeHint .withMembers (MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS ,
100100MemberCategory .INVOKE_PUBLIC_METHODS );
101101}
102- typeHint .withMembers (
103- MemberCategory .DECLARED_FIELDS ,
102+ typeHint .withMembers (MemberCategory .DECLARED_FIELDS ,
104103MemberCategory .INVOKE_DECLARED_CONSTRUCTORS );
105104for  (Method  method  : clazz .getMethods ()) {
106105String  methodName  = method .getName ();
@@ -137,8 +136,7 @@ private void registerRecordHints(ReflectionHints hints, Set<Type> seen, Method m
137136}
138137
139138private  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 ) {
142140hints .registerMethod (method , ExecutableMode .INVOKE );
143141MethodParameter  methodParameter  = MethodParameter .forExecutable (method , parameterIndex );
144142Type  methodParameterType  = methodParameter .getGenericParameterType ();
@@ -213,6 +211,7 @@ private void registerHintsForClassAttributes(ReflectionHints hints, MergedAnnota
213211});
214212}
215213
214+ 
216215/** 
217216 * Inner class to avoid a hard dependency on Kotlin at runtime. 
218217 */ 
0 commit comments