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