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; }