From cb1eed42b84017f376cf8872662861ae45411510 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 23 Feb 2018 13:57:19 +0100 Subject: [PATCH] Polish --- .../web/servlet/ServletManagementContextAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementContextAutoConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementContextAutoConfiguration.java index 34607d7f89..3ec4e829f6 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementContextAutoConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ServletManagementContextAutoConfiguration.java @@ -49,7 +49,7 @@ public class ServletManagementContextAutoConfiguration { @Bean public ManagementServletContext managementServletContext( WebEndpointProperties properties) { - return () -> properties.getBasePath(); + return properties::getBasePath; } // Put Servlets and Filters in their own nested class so they don't force early