Browse Source

Polish formatting

See gh-27801
pull/27818/head
Stephane Nicoll 3 years ago
parent
commit
61601de250
  1. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

3
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

@ -476,7 +476,8 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
// Local exception handler methods on the controller class itself. // Local exception handler methods on the controller class itself.
// To be invoked through the proxy, even in case of an interface-based proxy. // To be invoked through the proxy, even in case of an interface-based proxy.
handlerType = handlerMethod.getBeanType(); handlerType = handlerMethod.getBeanType();
ExceptionHandlerMethodResolver resolver = this.exceptionHandlerCache.computeIfAbsent(handlerType, ExceptionHandlerMethodResolver::new); ExceptionHandlerMethodResolver resolver = this.exceptionHandlerCache.computeIfAbsent(
handlerType, ExceptionHandlerMethodResolver::new);
Method method = resolver.resolveMethod(exception); Method method = resolver.resolveMethod(exception);
if (method != null) { if (method != null) {
return new ServletInvocableHandlerMethod(handlerMethod.getBean(), method, this.applicationContext); return new ServletInvocableHandlerMethod(handlerMethod.getBean(), method, this.applicationContext);

Loading…
Cancel
Save