From 4e1f2056252eea84fb06a96085355c493e22e190 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 16 Oct 2025 09:38:08 +0200 Subject: [PATCH] Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-servlet See gh-47263 --- smoke-test/spring-boot-smoke-test-servlet/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smoke-test/spring-boot-smoke-test-servlet/build.gradle b/smoke-test/spring-boot-smoke-test-servlet/build.gradle index b483b15f6ab..a7dc63bb54d 100644 --- a/smoke-test/spring-boot-smoke-test-servlet/build.gradle +++ b/smoke-test/spring-boot-smoke-test-servlet/build.gradle @@ -30,3 +30,7 @@ dependencies { testRuntimeOnly(project(":starter:spring-boot-starter-tomcat")) } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +}