Skip to content

Commit 06dd6ae

Browse files
committed
Add nullability annotations to tests in module/spring-boot-data-neo4j-test
See gh-47263
1 parent a1038a5 commit 06dd6ae

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

module/spring-boot-data-neo4j-test/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ dependencies {
4545

4646
testRuntimeOnly("ch.qos.logback:logback-classic")
4747
}
48+
49+
tasks.named("compileTestJava") {
50+
options.nullability.checking = "tests"
51+
}
52+
53+
tasks.named("compileDockerTestJava") {
54+
options.nullability.checking = "tests"
55+
}

module/spring-boot-data-neo4j-test/src/dockerTest/java/org/springframework/boot/data/neo4j/test/autoconfigure/ExampleGraph.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class ExampleGraph {
3131

3232
@Id
3333
@GeneratedValue
34+
@SuppressWarnings("NullAway.Init")
3435
private Long id;
3536

3637
@Property

0 commit comments

Comments
 (0)