From dfc9b02313f6b7e321e325a2dc319fa3b424f1a2 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Mon, 16 Dec 2024 11:35:44 -0800 Subject: [PATCH] Nullability warning go away --- .../java/org/openrewrite/java/dependencies/AddDependency.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/dependencies/AddDependency.java b/src/main/java/org/openrewrite/java/dependencies/AddDependency.java index 5c40cdc..ac7a6b5 100644 --- a/src/main/java/org/openrewrite/java/dependencies/AddDependency.java +++ b/src/main/java/org/openrewrite/java/dependencies/AddDependency.java @@ -163,7 +163,7 @@ public TreeVisitor getVisitor(Accumulator acc) { final TreeVisitor mavenAddDep = mavenAddDep().getVisitor(acc.mavenAccumulator); @Override - public Tree visit(@Nullable Tree tree, ExecutionContext ctx) { + public Tree visit(@SuppressWarnings("NullableProblems") Tree tree, ExecutionContext ctx) { if (!(tree instanceof SourceFile)) { return tree; }