提交 f0b2f718 编写于 作者: S Sam Brannen

Polishing

上级 842b424a
...@@ -917,9 +917,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter ...@@ -917,9 +917,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
} }
List<InvocableHandlerMethod> attrMethods = new ArrayList<>(); List<InvocableHandlerMethod> attrMethods = new ArrayList<>();
// Global methods first // Global methods first
this.modelAttributeAdviceCache.forEach((clazz, methodSet) -> { this.modelAttributeAdviceCache.forEach((controllerAdviceBean, methodSet) -> {
if (clazz.isApplicableToBeanType(handlerType)) { if (controllerAdviceBean.isApplicableToBeanType(handlerType)) {
Object bean = clazz.resolveBean(); Object bean = controllerAdviceBean.resolveBean();
for (Method method : methodSet) { for (Method method : methodSet) {
attrMethods.add(createModelAttributeMethod(binderFactory, bean, method)); attrMethods.add(createModelAttributeMethod(binderFactory, bean, method));
} }
...@@ -951,9 +951,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter ...@@ -951,9 +951,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
} }
List<InvocableHandlerMethod> initBinderMethods = new ArrayList<>(); List<InvocableHandlerMethod> initBinderMethods = new ArrayList<>();
// Global methods first // Global methods first
this.initBinderAdviceCache.forEach((clazz, methodSet) -> { this.initBinderAdviceCache.forEach((controllerAdviceBean, methodSet) -> {
if (clazz.isApplicableToBeanType(handlerType)) { if (controllerAdviceBean.isApplicableToBeanType(handlerType)) {
Object bean = clazz.resolveBean(); Object bean = controllerAdviceBean.resolveBean();
for (Method method : methodSet) { for (Method method : methodSet) {
initBinderMethods.add(createInitBinderMethod(bean, method)); initBinderMethods.add(createInitBinderMethod(bean, method));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册