Skip to content

Commit 1e7d85a

Browse files
committed
Polish
1 parent 723222a commit 1e7d85a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ public boolean isTemplateAvailable(String view, Environment environment,
5555
ClassLoader classLoader, ResourceLoader resourceLoader) {
5656
if (ClassUtils.isPresent(this.className, classLoader)) {
5757
Binder binder = Binder.get(environment);
58-
TemplateAvailabilityProperties properties1 = binder
58+
TemplateAvailabilityProperties properties = binder
5959
.bind(this.propertyPrefix, this.propertiesClass)
6060
.orElseCreate(this.propertiesClass);
61-
TemplateAvailabilityProperties properties = properties1;
6261
return isTemplateAvailable(view, resourceLoader, properties);
6362
}
6463
return false;

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ public void contextPathIsLoggedOnStartup() {
269269
factory.setContextPath("/custom");
270270
this.webServer = factory.getWebServer(exampleServletRegistration());
271271
this.webServer.start();
272-
assertThat(this.output.toString()).containsOnlyOnce("with context path '/custom'");
272+
assertThat(this.output.toString())
273+
.containsOnlyOnce("with context path '/custom'");
273274
}
274275

275276
@Test

0 commit comments

Comments
 (0)