From 7689389349724d9360b47e0141e960267e4bc709 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 16 Sep 2025 15:03:02 +0200 Subject: [PATCH] Use correct nullable annotations in smoke tests See gh-46926 --- .../src/main/java/smoketest/web/thymeleaf/Message.java | 2 +- .../main/java/smoketest/websocket/jetty/snake/SnakeTimer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smoke-test/spring-boot-smoke-test-web-thymeleaf/src/main/java/smoketest/web/thymeleaf/Message.java b/smoke-test/spring-boot-smoke-test-web-thymeleaf/src/main/java/smoketest/web/thymeleaf/Message.java index 6eaa0f71b9d..7589eac21e0 100644 --- a/smoke-test/spring-boot-smoke-test-web-thymeleaf/src/main/java/smoketest/web/thymeleaf/Message.java +++ b/smoke-test/spring-boot-smoke-test-web-thymeleaf/src/main/java/smoketest/web/thymeleaf/Message.java @@ -18,8 +18,8 @@ package smoketest.web.thymeleaf; import java.util.Calendar; -import jakarta.annotation.Nullable; import jakarta.validation.constraints.NotEmpty; +import org.jspecify.annotations.Nullable; public class Message { diff --git a/smoke-test/spring-boot-smoke-test-websocket-jetty/src/main/java/smoketest/websocket/jetty/snake/SnakeTimer.java b/smoke-test/spring-boot-smoke-test-websocket-jetty/src/main/java/smoketest/websocket/jetty/snake/SnakeTimer.java index cce1609b6e6..235481c76e9 100644 --- a/smoke-test/spring-boot-smoke-test-websocket-jetty/src/main/java/smoketest/websocket/jetty/snake/SnakeTimer.java +++ b/smoke-test/spring-boot-smoke-test-websocket-jetty/src/main/java/smoketest/websocket/jetty/snake/SnakeTimer.java @@ -24,9 +24,9 @@ import java.util.TimerTask; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; -import jakarta.annotation.Nullable; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.jspecify.annotations.Nullable; /** * Sets up the timer for the multiplayer snake game WebSocket example.