Skip to content

Commit c10eeb4

Browse files
committed
Polishing
1 parent ea5911f commit c10eeb4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-webmvc-tiles3/src/main/java/org/springframework/web/servlet/view/tiles3/TilesConfigurer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
*
117117
* @author mick semb wever
118118
* @author Rossen Stoyanchev
119+
* @author Juergen Hoeller
119120
* @since 3.2
120121
* @see TilesView
121122
* @see TilesViewResolver
@@ -315,7 +316,7 @@ protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(ApplicationC
315316
LocaleResolver resolver) {
316317
BaseLocaleUrlDefinitionDAO dao = super.instantiateLocaleDefinitionDao(applicationContext, resolver);
317318
if (checkRefresh && dao instanceof CachingLocaleUrlDefinitionDAO) {
318-
((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(checkRefresh);
319+
((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(true);
319320
}
320321
return dao;
321322
}
@@ -354,7 +355,8 @@ protected DefinitionsFactory createDefinitionsFactory(ApplicationContext applica
354355
protected PreparerFactory createPreparerFactory(ApplicationContext context) {
355356
if (preparerFactoryClass != null) {
356357
return BeanUtils.instantiate(preparerFactoryClass);
357-
} else {
358+
}
359+
else {
358360
return super.createPreparerFactory(context);
359361
}
360362
}
@@ -394,7 +396,6 @@ private static class SpringCompleteAutoloadTilesContainerFactory extends Complet
394396
protected LocaleResolver createLocaleResolver(ApplicationContext applicationContext) {
395397
return new SpringLocaleResolver();
396398
}
397-
398399
}
399400

400401

spring-webmvc/src/main/java/org/springframework/web/servlet/view/tiles2/TilesConfigurer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -326,7 +326,7 @@ protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(TilesApplica
326326
BaseLocaleUrlDefinitionDAO dao = super.instantiateLocaleDefinitionDao(
327327
applicationContext, contextFactory, resolver);
328328
if (checkRefresh && dao instanceof CachingLocaleUrlDefinitionDAO) {
329-
((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(checkRefresh);
329+
((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(true);
330330
}
331331
return dao;
332332
}

0 commit comments

Comments
 (0)