@@ -62,7 +62,7 @@ public boolean isValid(String beanAndMethodName, Class<?> clazz, Method method)
6262
6363 for (Annotation [] paramAnnotations : allParameterAnnotations ) {
6464 for (Annotation paramAnnotation : paramAnnotations ) {
65- if (RequestParam . class . isInstance (paramAnnotation )) {
65+ if ((paramAnnotation instanceof RequestParam )) {
6666 log .error ("SIMPLE method '" + beanAndMethodName
6767 + "' contains a non supported parameter annotation @RequestParam" );
6868 return false ;
@@ -189,7 +189,7 @@ public boolean isValid(String beanAndMethodName, Class<?> clazz, Method method)
189189 + "' does not support entryClass attribute of @ExtDirectMethod" );
190190 }
191191
192- if (extDirectMethodAnnotation .batched () == false ) {
192+ if (! extDirectMethodAnnotation .batched ()) {
193193 log .warn ("FORM_POST method '" + beanAndMethodName
194194 + "' does not support batched attribute of @ExtDirectMethod" );
195195 }
@@ -237,7 +237,7 @@ else if (method.getReturnType().equals(Void.TYPE)) {
237237 if (methodAnnotation != null ) {
238238 boolean hasPostRequestMethod = false ;
239239 for (RequestMethod requestMethod : methodAnnotation .method ()) {
240- if (requestMethod . equals ( RequestMethod .POST )) {
240+ if (RequestMethod .POST . equals ( requestMethod )) {
241241 hasPostRequestMethod = true ;
242242 break ;
243243 }
@@ -253,7 +253,7 @@ else if (method.getReturnType().equals(Void.TYPE)) {
253253 ExtDirectMethod extDirectMethodAnnotation = AnnotatedElementUtils .findMergedAnnotation (method ,
254254 ExtDirectMethod .class );
255255
256- if (extDirectMethodAnnotation .batched () == false ) {
256+ if (! extDirectMethodAnnotation .batched ()) {
257257 log .warn ("FORM_POST method '" + beanAndMethodName
258258 + "' does not support batched attribute of @ExtDirectMethod" );
259259 }
@@ -327,7 +327,7 @@ public boolean isValid(String beanAndMethodName, Class<?> clazz, Method method)
327327 + "' does not support entryClass attribute of @ExtDirectMethod" );
328328 }
329329
330- if (extDirectMethodAnnotation .batched () == false ) {
330+ if (! extDirectMethodAnnotation .batched ()) {
331331 log .warn ("POLL method '" + beanAndMethodName
332332 + "' does not support batched attribute of @ExtDirectMethod" );
333333 }
@@ -350,7 +350,7 @@ public boolean isValid(String beanAndMethodName, Class<?> clazz, Method method)
350350 + "' does not support event attribute of @ExtDirectMethod" );
351351 }
352352
353- if (extDirectMethodAnnotation .batched () == false ) {
353+ if (! extDirectMethodAnnotation .batched ()) {
354354 log .warn ("FORM_POST_JSON method '" + beanAndMethodName
355355 + "' does not support batched attribute of @ExtDirectMethod" );
356356 }
@@ -361,7 +361,7 @@ public boolean isValid(String beanAndMethodName, Class<?> clazz, Method method)
361361 + "' must not have a BindingResult parameter" );
362362 return false ;
363363 }
364- else if (clazzz .isAssignableFrom (MultipartFile .class )) {
364+ if (clazzz .isAssignableFrom (MultipartFile .class )) {
365365 log .error ("FORM_POST_JSON method '" + beanAndMethodName
366366 + "' must not have a MultipartFile parameter" );
367367 return false ;
0 commit comments