From d61ac5bafffbdf686101e90ed19ab27d083c3d76 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 12 Aug 2025 09:37:39 +0200 Subject: [PATCH] Add nullability annotations to smoke-test/spring-boot-smoke-test-aop See gh-46587 --- .../smoketest/aop/monitor/package-info.java | 20 +++++++++++++++++++ .../main/java/smoketest/aop/package-info.java | 20 +++++++++++++++++++ .../aop/service/HelloWorldService.java | 1 + .../smoketest/aop/service/package-info.java | 20 +++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/monitor/package-info.java create mode 100644 smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/package-info.java create mode 100644 smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/package-info.java diff --git a/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/monitor/package-info.java b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/monitor/package-info.java new file mode 100644 index 00000000000..e0d64638b8d --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/monitor/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.aop.monitor; + +import org.jspecify.annotations.NullMarked; diff --git a/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/package-info.java b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/package-info.java new file mode 100644 index 00000000000..4413f46968f --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/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.aop; + +import org.jspecify.annotations.NullMarked; diff --git a/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/HelloWorldService.java b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/HelloWorldService.java index de35ab136d7..5a1b1d509dc 100644 --- a/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/HelloWorldService.java +++ b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/HelloWorldService.java @@ -23,6 +23,7 @@ import org.springframework.stereotype.Component; public class HelloWorldService { @Value("${test.name:World}") + @SuppressWarnings("NullAway.Init") private String name; public String getHelloMessage() { diff --git a/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/package-info.java b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/service/package-info.java new file mode 100644 index 00000000000..06d374c59ee --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-aop/src/main/java/smoketest/aop/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.aop.service; + +import org.jspecify.annotations.NullMarked;