diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java index 16632ab526..3fbb4b9a37 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationTests.java @@ -817,7 +817,7 @@ public class WebMvcAutoConfigurationTests { ContentNegotiationManager manager = context .getBean(ContentNegotiationManager.class); assertThat(manager.getStrategies()).anyMatch( - strategy -> WebMvcAutoConfiguration.OptionalPathExtensionContentNegotiationStrategy.class + (strategy) -> WebMvcAutoConfiguration.OptionalPathExtensionContentNegotiationStrategy.class .isAssignableFrom(strategy.getClass())); }); }