diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/package-info.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/package-info.java new file mode 100644 index 00000000000..de926874519 --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/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.profile; + +import org.jspecify.annotations.NullMarked; diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GenericService.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GenericService.java index 693b98f4884..183c53e48b4 100644 --- a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GenericService.java +++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GenericService.java @@ -25,9 +25,11 @@ import org.springframework.stereotype.Component; public class GenericService implements MessageService { @Value("${test.hello:Hello}") + @SuppressWarnings("NullAway.Init") private String hello; @Value("${test.name:World}") + @SuppressWarnings("NullAway.Init") private String name; @Override diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GoodbyeWorldService.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GoodbyeWorldService.java index 60870c15cde..3e090cc19e2 100644 --- a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GoodbyeWorldService.java +++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/GoodbyeWorldService.java @@ -25,6 +25,7 @@ import org.springframework.stereotype.Component; public class GoodbyeWorldService implements MessageService { @Value("${test.name:World}") + @SuppressWarnings("NullAway.Init") private String name; @Override diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/HelloWorldService.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/HelloWorldService.java index 36547631e09..6d68331dfeb 100644 --- a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/HelloWorldService.java +++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/HelloWorldService.java @@ -25,6 +25,7 @@ import org.springframework.stereotype.Component; public class HelloWorldService implements MessageService { @Value("${test.name:World}") + @SuppressWarnings("NullAway.Init") private String name; @Override diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/package-info.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/package-info.java new file mode 100644 index 00000000000..b92f3adf3ba --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/service/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.profile.service; + +import org.jspecify.annotations.NullMarked;