diff --git a/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/SampleController.java b/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/SampleController.java index 87b7e2cfacb..b41bf89cdad 100644 --- a/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/SampleController.java +++ b/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/SampleController.java @@ -67,6 +67,7 @@ public class SampleController { protected static class Message { @NotBlank(message = "Message value cannot be empty") + @SuppressWarnings("NullAway.Init") private String value; public String getValue() { diff --git a/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/package-info.java b/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/package-info.java new file mode 100644 index 00000000000..6f28c784a5d --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-actuator/src/main/java/smoketest/actuator/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.actuator; + +import org.jspecify.annotations.NullMarked;