From 4e8828dc101840b60a473e088d4cd461575976ae Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 21 Jun 2021 18:55:52 +0200 Subject: [PATCH] Suppress warnings in ServletAnnotationControllerHandlerMethodTests --- .../ServletAnnotationControllerHandlerMethodTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java index eba67ab75e4..e0abff6ec16 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java @@ -1753,6 +1753,7 @@ public class ServletAnnotationControllerHandlerMethodTests extends AbstractServl } @PathPatternsParameterizedTest + @SuppressWarnings("deprecation") void responseBodyAsHtml(boolean usePathPatterns) throws Exception { initDispatcherServlet(TextRestController.class, usePathPatterns, wac -> { if (!usePathPatterns) { @@ -1792,6 +1793,7 @@ public class ServletAnnotationControllerHandlerMethodTests extends AbstractServl } @PathPatternsParameterizedTest + @SuppressWarnings("deprecation") void responseBodyAsHtmlWithSuffixPresent(boolean usePathPatterns) throws Exception { initDispatcherServlet(TextRestController.class, usePathPatterns, wac -> { ContentNegotiationManagerFactoryBean factoryBean = new ContentNegotiationManagerFactoryBean();