Browse Source

Add nullability annotations to tests in module/spring-boot-data-neo4j-test

See gh-47263
pull/47415/head
Moritz Halbritter 2 months ago
parent
commit
06dd6aec3c
  1. 8
      module/spring-boot-data-neo4j-test/build.gradle
  2. 1
      module/spring-boot-data-neo4j-test/src/dockerTest/java/org/springframework/boot/data/neo4j/test/autoconfigure/ExampleGraph.java

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

@ -45,3 +45,11 @@ dependencies { @@ -45,3 +45,11 @@ dependencies {
testRuntimeOnly("ch.qos.logback:logback-classic")
}
tasks.named("compileTestJava") {
options.nullability.checking = "tests"
}
tasks.named("compileDockerTestJava") {
options.nullability.checking = "tests"
}

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

@ -31,6 +31,7 @@ public class ExampleGraph { @@ -31,6 +31,7 @@ public class ExampleGraph {
@Id
@GeneratedValue
@SuppressWarnings("NullAway.Init")
private Long id;
@Property

Loading…
Cancel
Save