From b0f503c24cbf207e85b4c4fc405a95bde6df87e7 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 16 Oct 2025 09:11:13 +0200 Subject: [PATCH] Add nullability annotations to tests in module/spring-boot-webtestclient See gh-47263 --- module/spring-boot-webtestclient/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/spring-boot-webtestclient/build.gradle b/module/spring-boot-webtestclient/build.gradle index 105fd23f329..b6c42cffc10 100644 --- a/module/spring-boot-webtestclient/build.gradle +++ b/module/spring-boot-webtestclient/build.gradle @@ -37,3 +37,7 @@ dependencies { testRuntimeOnly("jakarta.servlet:jakarta.servlet-api") testRuntimeOnly("org.springframework:spring-webmvc") } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +}