Add nullability annotations to module/spring-boot-data-neo4j

See gh-46587
This commit is contained in:
Moritz Halbritter
2025-07-30 13:47:05 +02:00
parent bf54614510
commit fa6e9021ec
2 changed files with 8 additions and 3 deletions
@@ -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;
}
@@ -17,4 +17,7 @@
/**
* Auto-configuration for Spring Data Neo4j.
*/
@NullMarked
package org.springframework.boot.data.neo4j.autoconfigure;
import org.jspecify.annotations.NullMarked;