Skip to content

Commit

Permalink
Use JavaParser.runtimeClasspath() not because it is better, but becau…
Browse files Browse the repository at this point in the history
…se I want to see if this will still work on the saas. Will revert this change either way.
  • Loading branch information
sambsnyd committed Apr 25, 2024
1 parent c0b7a60 commit 6cf0111
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
return Preconditions.check(new UsesType<>("org.apache.http.impl.client.DefaultHttpClient", false), new JavaVisitor<ExecutionContext>() {
final MethodMatcher noArgsMatcher = new MethodMatcher("org.apache.http.impl.client.DefaultHttpClient <constructor>()");
final JavaTemplate noArgsTemplate = JavaTemplate.builder("HttpClients.createDefault()")
.javaParser(JavaParser.fromJavaVersion().classpath("httpclient"))
.javaParser(JavaParser.fromJavaVersion().classpath(JavaParser.runtimeClasspath()))
.imports("org.apache.http.impl.client.HttpClients")
.build();

Expand Down

0 comments on commit 6cf0111

Please sign in to comment.