mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 15:29:05 +00:00
Add nullability annotations to module/spring-boot-data-neo4j
See gh-46587
This commit is contained in:
+5
-3
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.boot.data.neo4j.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
@@ -30,13 +32,13 @@ public class Neo4jDataProperties {
|
||||
/**
|
||||
* Database name to use. By default, the server decides the default database to use.
|
||||
*/
|
||||
private String database;
|
||||
private @Nullable String database;
|
||||
|
||||
public String getDatabase() {
|
||||
public @Nullable String getDatabase() {
|
||||
return this.database;
|
||||
}
|
||||
|
||||
public void setDatabase(String database) {
|
||||
public void setDatabase(@Nullable String database) {
|
||||
this.database = database;
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -17,4 +17,7 @@
|
||||
/**
|
||||
* Auto-configuration for Spring Data Neo4j.
|
||||
*/
|
||||
@NullMarked
|
||||
package org.springframework.boot.data.neo4j.autoconfigure;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
Reference in New Issue
Block a user