Skip to content

Commit

Permalink
Make JavaParser.Builder#addClasspathEntry() public
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Mar 5, 2024
1 parent 01b44eb commit 75d9ad6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -367,7 +364,8 @@ public B classpath(Collection<Path> 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 {
Expand Down

0 comments on commit 75d9ad6

Please sign in to comment.