Skip to content

Commit

Permalink
Update src/main/java/org/openrewrite/java/apache/httpclient4/MigrateD…
Browse files Browse the repository at this point in the history
…efaultHttpClient.java

Co-authored-by: Tim te Beek <tim@moderne.io>
  • Loading branch information
Joan Viladrosa and timtebeek authored Aug 1, 2023
1 parent cf2a54a commit 270cfa0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public String getDescription() {
@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
return Preconditions.check(new UsesType<>("org.apache.http.impl.client.DefaultHttpClient", false), new JavaVisitor<ExecutionContext>() {
MethodMatcher noArgsMatcher = new MethodMatcher("org.apache.http.impl.client.DefaultHttpClient <constructor>()");
JavaTemplate noArgsTemplate = JavaTemplate.builder("HttpClients.createDefault()")
final MethodMatcher noArgsMatcher = new MethodMatcher("org.apache.http.impl.client.DefaultHttpClient <constructor>()");
final JavaTemplate noArgsTemplate = JavaTemplate.builder("HttpClients.createDefault()")
.javaParser(JavaParser.fromJavaVersion().classpath("httpclient"))
.imports("org.apache.http.impl.client.HttpClients")
.build();
Expand Down

0 comments on commit 270cfa0

Please sign in to comment.