From 7edd4e8e226ba77006a8ea1a8a4183733d622a24 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Sat, 23 Mar 2024 09:28:49 +0100 Subject: [PATCH] Clean up warnings in Gradle build --- .../context/i18n/LocaleContextThreadLocalAccessorTests.java | 1 + .../web/socket/messaging/WebSocketStompClientTests.java | 1 + 2 files changed, 2 insertions(+) diff --git a/spring-context/src/test/java/org/springframework/context/i18n/LocaleContextThreadLocalAccessorTests.java b/spring-context/src/test/java/org/springframework/context/i18n/LocaleContextThreadLocalAccessorTests.java index aaf43b5d096..d4b2e6263da 100644 --- a/spring-context/src/test/java/org/springframework/context/i18n/LocaleContextThreadLocalAccessorTests.java +++ b/spring-context/src/test/java/org/springframework/context/i18n/LocaleContextThreadLocalAccessorTests.java @@ -51,6 +51,7 @@ class LocaleContextThreadLocalAccessorTests { @ParameterizedTest @MethodSource + @SuppressWarnings("try") void propagation(@Nullable LocaleContext previous, LocaleContext current) throws Exception { LocaleContextHolder.setLocaleContext(current); ContextSnapshot snapshot = ContextSnapshotFactory.builder() diff --git a/spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientTests.java b/spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientTests.java index be661293b5f..f4b8d813ea7 100644 --- a/spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientTests.java +++ b/spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientTests.java @@ -278,6 +278,7 @@ class WebSocketStompClientTests { } @Test + @SuppressWarnings({ "rawtypes", "unchecked" }) void reassembleReceivedIFragmentedFrames() throws Exception { WebSocketHandler handler = connect(); handler.handleMessage(this.webSocketSession, new TextMessage("SEND\ndestination:/topic/foo\nco"));