Add nullability annotations to integration-test/spring-boot-configuration-processor-integration-tests

See gh-46587
This commit is contained in:
Moritz Halbritter 2025-08-12 14:46:11 +02:00
parent 968b878752
commit a70a8b2697
2 changed files with 7 additions and 3 deletions

View File

@ -17,6 +17,7 @@
package sample;
import jakarta.validation.Valid;
import org.jspecify.annotations.Nullable;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ -32,14 +33,14 @@ public class AnnotatedSample {
/**
* A valid name.
*/
private String name;
private @Nullable String name;
@Valid
public String getName() {
public @Nullable String getName() {
return this.name;
}
public void setName(String name) {
public void setName(@Nullable String name) {
this.name = name;
}

View File

@ -17,4 +17,7 @@
/**
* Sample used for testing.
*/
@NullMarked
package sample;
import org.jspecify.annotations.NullMarked;