From 7ae98eecd8375093467145458bf048323e26eeaf Mon Sep 17 00:00:00 2001 From: Niels de Bruin Date: Mon, 28 Oct 2024 11:08:19 +0100 Subject: [PATCH] refactor: Annotate methods which may return `null` with `@Nullable` (#343) Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.AnnotateNullableMethods?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../src/main/java/org/openrewrite/gradle/RewriteExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java b/plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java index 05d75d373..17f0721ab 100755 --- a/plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java +++ b/plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java @@ -99,7 +99,7 @@ public void setCheckstyleConfigFile(File configFile) { * Will prefer to return an explicitly configured checkstyle configuration file location. * If none has been specified, will attempt to auto-detect an appropriate file. */ - public @Nullable File getCheckstyleConfigFile() { + public @org.jspecify.annotations.Nullable @Nullable File getCheckstyleConfigFile() { if (checkstyleConfigFile == null && checkstyleConfigProvider != null) { try { return checkstyleConfigProvider.get();