Skip to content

Commit

Permalink
Change ResponseHandler to HttpClientResponseHandler (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiBorea authored Dec 11, 2024
1 parent 847a631 commit 3324abc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/resources/META-INF/rewrite/apache-httpclient-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.HttpResponse
newFullyQualifiedTypeName: org.apache.hc.core5.http.ClassicHttpResponse
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.http.client.ResponseHandler
newFullyQualifiedTypeName: org.apache.hc.core5.http.io.HttpClientResponseHandler

# Fixing argument order change
- org.openrewrite.java.ReorderMethodArguments:
methodPattern: org.apache.hc.core5.http.HttpHost <constructor>(java.lang.String, int, java.lang.String)
Expand All @@ -462,7 +466,6 @@ recipeList:
methodPattern: org.apache.hc.core5.http.HttpHost <constructor>(java.net.InetAddress, java.lang.String, int, java.lang.String)
oldParameterNames: [address, hostname, port, scheme]
newParameterNames: [scheme, address, hostname, port]

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_DeprecatedMethods
Expand Down

0 comments on commit 3324abc

Please sign in to comment.