From 1b3cf72fc95fc80f840fa1d1b9865365f315120a Mon Sep 17 00:00:00 2001 From: Robert Winch <362503+rwinch@users.noreply.github.com> Date: Thu, 22 Jan 2026 14:58:41 -0600 Subject: [PATCH] Add Nullaway Checkstyle - Require package-info.java with @NullMarked in every package - Suppress package checks for tests and modules that haven't been worked on - Prevent non org.jspecify Nullability imports on enabled modules - Validate Nullable is before modifiers Closes gh-18564 --- etc/checkstyle/checkstyle-suppressions.xml | 45 ++++++++++++++++++++++ etc/checkstyle/checkstyle.xml | 32 ++++++++++++--- 2 files changed, 72 insertions(+), 5 deletions(-) diff --git a/etc/checkstyle/checkstyle-suppressions.xml b/etc/checkstyle/checkstyle-suppressions.xml index 4dd1798f5a..b8b2861854 100644 --- a/etc/checkstyle/checkstyle-suppressions.xml +++ b/etc/checkstyle/checkstyle-suppressions.xml @@ -15,6 +15,9 @@ + + + @@ -49,4 +52,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/etc/checkstyle/checkstyle.xml b/etc/checkstyle/checkstyle.xml index 1ece40dc9d..a4d0fa1b0c 100644 --- a/etc/checkstyle/checkstyle.xml +++ b/etc/checkstyle/checkstyle.xml @@ -11,6 +11,15 @@ + + + + + + + + + @@ -47,10 +56,23 @@ value="String.toUpperCase() should be String.toUpperCase(Locale.ROOT) or String.toUpperCase(Locale.ENGLISH)"/> - - - - - + + + + + + + + + + + + + + + + + +