From 349c27ba8084ca69db25a3b1bcd63c60ebdef764 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 12 Aug 2025 11:07:14 +0200 Subject: [PATCH] Add nullability annotations to smoke-test/spring-boot-smoke-test-rsocket See gh-46587 --- .../main/java/smoketest/rsocket/Project.java | 9 +-------- .../java/smoketest/rsocket/package-info.java | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/package-info.java diff --git a/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/Project.java b/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/Project.java index b4addb4523a..9ef1c408803 100644 --- a/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/Project.java +++ b/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/Project.java @@ -18,10 +18,7 @@ package smoketest.rsocket; public class Project { - private String name; - - public Project() { - } + private final String name; public Project(String name) { this.name = name; @@ -31,8 +28,4 @@ public class Project { return this.name; } - public void setName(String name) { - this.name = name; - } - } diff --git a/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/package-info.java b/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/package-info.java new file mode 100644 index 00000000000..9602a07b32a --- /dev/null +++ b/smoke-test/spring-boot-smoke-test-rsocket/src/main/java/smoketest/rsocket/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.rsocket; + +import org.jspecify.annotations.NullMarked;