From 75d9ad6c3418cf9f9dd304722d5e9b0f0beca35d Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 5 Mar 2024 07:11:47 +0100 Subject: [PATCH] Make `JavaParser.Builder#addClasspathEntry()` public --- .../src/main/java/org/openrewrite/java/JavaParser.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java b/rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java index f7b99747892..b74d3b0fffd 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/JavaParser.java @@ -20,10 +20,7 @@ import io.github.classgraph.ResourceList; import io.github.classgraph.ScanResult; import org.intellij.lang.annotations.Language; -import org.openrewrite.ExecutionContext; -import org.openrewrite.InMemoryExecutionContext; -import org.openrewrite.Parser; -import org.openrewrite.SourceFile; +import org.openrewrite.*; import org.openrewrite.internal.lang.Nullable; import org.openrewrite.java.internal.JavaTypeCache; import org.openrewrite.java.marker.JavaSourceSet; @@ -367,7 +364,8 @@ public B classpath(Collection classpath) { } // internal method which doesn't overwrite the classpath but just amends it - B addClasspathEntry(Path entry) { + @Incubating(since = "8.18.3") + public B addClasspathEntry(Path entry) { if (this.classpath.isEmpty()) { this.classpath = Collections.singletonList(entry); } else {