Skip to content

Commit

Permalink
Remove Deprecated Methods (#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro authored Sep 6, 2023
1 parent 37cadf3 commit f48c404
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion client/src/main/java/org/asynchttpclient/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ public interface Request {
/**
* @return a new request builder using this request as a prototype
*/
@SuppressWarnings("deprecation")
default RequestBuilder toBuilder() {
return new RequestBuilder(this);
}
Expand Down
11 changes: 1 addition & 10 deletions client/src/main/java/org/asynchttpclient/RequestBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,7 @@ public RequestBuilder(String method, boolean disableUrlEncoding, boolean validat
super(method, disableUrlEncoding, validateHeaders);
}

/**
* @deprecated Use request.toBuilder() instead
*/
@Deprecated
public RequestBuilder(Request prototype) {
RequestBuilder(Request prototype) {
super(prototype);
}

@Deprecated
public RequestBuilder(Request prototype, boolean disableUrlEncoding, boolean validateHeaders) {
super(prototype, disableUrlEncoding, validateHeaders);
}
}

0 comments on commit f48c404

Please sign in to comment.