mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-07 17:59:02 +00:00
Add nullability annotations to integration-test/spring-boot-configuration-processor-integration-tests
See gh-46587
This commit is contained in:
+4
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -17,4 +17,7 @@
|
||||
/**
|
||||
* Sample used for testing.
|
||||
*/
|
||||
@NullMarked
|
||||
package sample;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
Reference in New Issue
Block a user