Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller authored and zx20110729 committed Feb 18, 2022
1 parent 81e9f98 commit 12d9abf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ControllerMethodResolver {
AnnotatedElementUtils.hasAnnotation(method, ModelAttribute.class));


private static Log logger = LogFactory.getLog(ControllerMethodResolver.class);
private static final Log logger = LogFactory.getLog(ControllerMethodResolver.class);

private final List<SyncHandlerMethodArgumentResolver> initBinderResolvers;

Expand All @@ -95,14 +95,12 @@ class ControllerMethodResolver {

private final ReactiveAdapterRegistry reactiveAdapterRegistry;


private final Map<Class<?>, Set<Method>> initBinderMethodCache = new ConcurrentHashMap<>(64);

private final Map<Class<?>, Set<Method>> modelAttributeMethodCache = new ConcurrentHashMap<>(64);

private final Map<Class<?>, ExceptionHandlerMethodResolver> exceptionHandlerCache = new ConcurrentHashMap<>(64);


private final Map<ControllerAdviceBean, Set<Method>> initBinderAdviceCache = new LinkedHashMap<>(64);

private final Map<ControllerAdviceBean, Set<Method>> modelAttributeAdviceCache = new LinkedHashMap<>(64);
Expand Down Expand Up @@ -169,7 +167,7 @@ private static List<HandlerMethodArgumentResolver> initResolvers(ArgumentResolve
boolean requestMappingMethod = !readers.isEmpty() && supportDataBinding;

// Annotation-based...
List<HandlerMethodArgumentResolver> result = new ArrayList<>();
List<HandlerMethodArgumentResolver> result = new ArrayList<>(30);
result.add(new RequestParamMethodArgumentResolver(beanFactory, adapterRegistry, false));
result.add(new RequestParamMapMethodArgumentResolver(adapterRegistry));
result.add(new PathVariableMethodArgumentResolver(beanFactory, adapterRegistry));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@Nullable
private ConfigurableBeanFactory beanFactory;


private final Map<Class<?>, SessionAttributesHandler> sessionAttributesHandlerCache = new ConcurrentHashMap<>(64);

private final Map<Class<?>, Set<Method>> initBinderCache = new ConcurrentHashMap<>(64);
Expand Down

0 comments on commit 12d9abf

Please sign in to comment.