Skip to content

Commit

Permalink
Update src/main/java/org/openrewrite/java/apache/httpclient5/AddTimeU…
Browse files Browse the repository at this point in the history
…nitArgument.java

Co-authored-by: Raquel Pau <[email protected]>
  • Loading branch information
Joan Viladrosa and rpau authored Aug 2, 2023
1 parent 6fd24cd commit 0b2e449
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String getDisplayName() {
public String getDescription() {
return "In Apache Http Client 5.x migration, we need to add a TimeUnit argument to the timeout and duration methods. " +
"Previously in 4.x, all this methods were implicitly having the timeout or duration expressed in milliseconds, " +
"but in 5.x we explicitly need to indicate the unit of the timeout or duration. So, by default it will add " +
"but in 5.x the unit of the timeout or duration is required. So, by default this recipe adds " +
"`TimeUnit.MILLISECONDS`, it is possible to specify this as a parameter. Since all affected methods of " +
"the Apache Http Client 5.x migration only have one integer/long argument, the recipe applies with matched method " +
"invocations of exactly one parameter.";
Expand Down

0 comments on commit 0b2e449

Please sign in to comment.