@@ -328,6 +328,7 @@ public class DispatcherServlet extends FrameworkServlet {
328
328
/** List of ViewResolvers used by this servlet */
329
329
private List <ViewResolver > viewResolvers ;
330
330
331
+
331
332
/**
332
333
* Create a new {@code DispatcherServlet} that will create its own internal web
333
334
* application context based on defaults and values provided through servlet
@@ -347,7 +348,7 @@ public class DispatcherServlet extends FrameworkServlet {
347
348
*/
348
349
public DispatcherServlet () {
349
350
super ();
350
- this . setDispatchOptionsRequest (true );
351
+ setDispatchOptionsRequest (true );
351
352
}
352
353
353
354
/**
@@ -391,9 +392,10 @@ public DispatcherServlet() {
391
392
*/
392
393
public DispatcherServlet (WebApplicationContext webApplicationContext ) {
393
394
super (webApplicationContext );
394
- this . setDispatchOptionsRequest (true );
395
+ setDispatchOptionsRequest (true );
395
396
}
396
397
398
+
397
399
/**
398
400
* Set whether to detect all HandlerMapping beans in this servlet's context. Otherwise,
399
401
* just a single bean with name "handlerMapping" will be expected.
@@ -465,6 +467,7 @@ public void setCleanupAfterInclude(boolean cleanupAfterInclude) {
465
467
this .cleanupAfterInclude = cleanupAfterInclude ;
466
468
}
467
469
470
+
468
471
/**
469
472
* This implementation calls {@link #initStrategies}.
470
473
*/
@@ -549,9 +552,8 @@ private void initThemeResolver(ApplicationContext context) {
549
552
// We need to use the default.
550
553
this .themeResolver = getDefaultStrategy (context , ThemeResolver .class );
551
554
if (logger .isDebugEnabled ()) {
552
- logger .debug (
553
- "Unable to locate ThemeResolver with name '" + THEME_RESOLVER_BEAN_NAME + "': using default [" +
554
- this .themeResolver + "]" );
555
+ logger .debug ("Unable to locate ThemeResolver with name '" + THEME_RESOLVER_BEAN_NAME +
556
+ "': using default [" + this .themeResolver + "]" );
555
557
}
556
558
}
557
559
}
@@ -739,8 +741,7 @@ private void initViewResolvers(ApplicationContext context) {
739
741
*/
740
742
private void initFlashMapManager (ApplicationContext context ) {
741
743
try {
742
- this .flashMapManager =
743
- context .getBean (FLASH_MAP_MANAGER_BEAN_NAME , FlashMapManager .class );
744
+ this .flashMapManager = context .getBean (FLASH_MAP_MANAGER_BEAN_NAME , FlashMapManager .class );
744
745
if (logger .isDebugEnabled ()) {
745
746
logger .debug ("Using FlashMapManager [" + this .flashMapManager + "]" );
746
747
}
@@ -840,7 +841,8 @@ protected <T> List<T> getDefaultStrategies(ApplicationContext context, Class<T>
840
841
841
842
/**
842
843
* Create a default strategy.
843
- * <p>The default implementation uses {@link org.springframework.beans.factory.config.AutowireCapableBeanFactory#createBean}.
844
+ * <p>The default implementation uses
845
+ * {@link org.springframework.beans.factory.config.AutowireCapableBeanFactory#createBean}.
844
846
* @param context the current WebApplicationContext
845
847
* @param clazz the strategy implementation class to instantiate
846
848
* @return the fully configured strategy instance
@@ -1101,7 +1103,8 @@ else if (request.getAttribute(WebUtils.ERROR_EXCEPTION_ATTRIBUTE) instanceof Mul
1101
1103
* @see MultipartResolver#cleanupMultipart
1102
1104
*/
1103
1105
protected void cleanupMultipart (HttpServletRequest request ) {
1104
- MultipartHttpServletRequest multipartRequest = WebUtils .getNativeRequest (request , MultipartHttpServletRequest .class );
1106
+ MultipartHttpServletRequest multipartRequest =
1107
+ WebUtils .getNativeRequest (request , MultipartHttpServletRequest .class );
1105
1108
if (multipartRequest != null ) {
1106
1109
this .multipartResolver .cleanupMultipart (multipartRequest );
1107
1110
}
0 commit comments