Polishing

This commit is contained in:
Juergen Hoeller
2018-08-09 01:41:45 +02:00
parent f3184a0878
commit d8d04d82c1
3 changed files with 26 additions and 35 deletions

View File

@@ -124,8 +124,8 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
* MethodFilter that matches {@link ModelAttribute @ModelAttribute} methods.
*/
public static final MethodFilter MODEL_ATTRIBUTE_METHODS = method ->
((AnnotationUtils.findAnnotation(method, RequestMapping.class) == null) &&
(AnnotationUtils.findAnnotation(method, ModelAttribute.class) != null));
(AnnotationUtils.findAnnotation(method, RequestMapping.class) == null &&
AnnotationUtils.findAnnotation(method, ModelAttribute.class) != null);
@Nullable