Browse Source

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

See gh-47263
pull/47415/head
Moritz Halbritter 2 months ago
parent
commit
55a97aa7ad
  1. 4
      module/spring-boot-data-r2dbc-test/build.gradle
  2. 4
      module/spring-boot-data-r2dbc-test/src/test/java/org/springframework/boot/data/r2dbc/test/autoconfigure/Example.java

4
module/spring-boot-data-r2dbc-test/build.gradle

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

4
module/spring-boot-data-r2dbc-test/src/test/java/org/springframework/boot/data/r2dbc/test/autoconfigure/Example.java

@ -16,6 +16,8 @@ @@ -16,6 +16,8 @@
package org.springframework.boot.data.r2dbc.test.autoconfigure;
import org.jspecify.annotations.Nullable;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
@ -28,6 +30,6 @@ import org.springframework.data.relational.core.mapping.Table; @@ -28,6 +30,6 @@ import org.springframework.data.relational.core.mapping.Table;
public class Example {
@Id
String id;
@Nullable String id;
}

Loading…
Cancel
Save