From 7e32f504b021015ca8a7eaed7280453fad724b0f Mon Sep 17 00:00:00 2001 From: "Ed .d" Date: Wed, 8 Mar 2023 16:21:49 +0300 Subject: [PATCH] Configure Checkstyle to require package-level null-safety annotations This commit updates the project's checkstyle configuration to check that package-info.java files contain the @NonNullApi and @NonNullFields null-safety annotations. See gh-30069 --- src/checkstyle/checkstyle-suppressions.xml | 4 +++- src/checkstyle/checkstyle.xml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index 1ab191b9d5..3911f004d0 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -130,7 +130,7 @@ - + @@ -138,5 +138,7 @@ + + diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index d44dafd468..7dc9c48a31 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -239,6 +239,26 @@ + + + + + + + + + + + + + + + + + + + +