Skip to content

Commit fa6e902

Browse files
committed
Add nullability annotations to module/spring-boot-data-neo4j
See gh-46587
1 parent bf54614 commit fa6e902

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

module/spring-boot-data-neo4j/src/main/java/org/springframework/boot/data/neo4j/autoconfigure/Neo4jDataProperties.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.data.neo4j.autoconfigure;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import org.springframework.boot.context.properties.ConfigurationProperties;
2022

2123
/**
@@ -30,13 +32,13 @@ public class Neo4jDataProperties {
3032
/**
3133
* Database name to use. By default, the server decides the default database to use.
3234
*/
33-
private String database;
35+
private @Nullable String database;
3436

35-
public String getDatabase() {
37+
public @Nullable String getDatabase() {
3638
return this.database;
3739
}
3840

39-
public void setDatabase(String database) {
41+
public void setDatabase(@Nullable String database) {
4042
this.database = database;
4143
}
4244

module/spring-boot-data-neo4j/src/main/java/org/springframework/boot/data/neo4j/autoconfigure/package-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
/**
1818
* Auto-configuration for Spring Data Neo4j.
1919
*/
20+
@NullMarked
2021
package org.springframework.boot.data.neo4j.autoconfigure;
22+
23+
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)