From fb66ef6f22587239a2f1cf6b4addce52a226cf3b Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 12 Aug 2025 10:38:17 +0200 Subject: [PATCH] Add nullability annotations to smoke-test/spring-boot-smoke-test-jersey See gh-46587 --- .../main/java/smoketest/jersey/Service.java | 1 + .../java/smoketest/jersey/package-info.java | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/package-info.java diff --git a/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/Service.java b/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/Service.java index 33f23c9c268..52255bb08b3 100644 --- a/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/Service.java +++ b/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/Service.java @@ -23,6 +23,7 @@ import org.springframework.stereotype.Component; public class Service { @Value("${message:World}") + @SuppressWarnings("NullAway.Init") private String msg; public String message() { diff --git a/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/package-info.java b/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/package-info.java new file mode 100644 index 00000000000..a2f1e3c5fc1 --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-jersey/src/main/java/smoketest/jersey/package-info.java @@ -0,0 +1,20 @@ +/* + * Copyright 2012-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@NullMarked +package smoketest.jersey; + +import org.jspecify.annotations.NullMarked;