This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new d686e52 RestClient API improvements.
d686e52 is described below
commit d686e52d72fd3384e7f4e3bee1a4843e4b66fed6
Author: JamesBognar <[email protected]>
AuthorDate: Sat Jun 12 10:52:35 2021 -0400
RestClient API improvements.
---
.../org/apache/juneau/rest/client/RestClientBuilder.java | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git
a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClientBuilder.java
b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClientBuilder.java
index 412784f..1dec1b7 100644
---
a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClientBuilder.java
+++
b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClientBuilder.java
@@ -112,18 +112,17 @@ public class RestClientBuilder extends BeanContextBuilder
{
super(copyFrom);
HttpClientBuilder httpClientBuilder =
peek(HttpClientBuilder.class, RESTCLIENT_httpClientBuilder);
this.httpClientBuilder = httpClientBuilder != null ?
httpClientBuilder : getHttpClientBuilder();
- int FIXME;
-// if (copyFrom == null) {
+ if (copyFrom == null) {
this.headerList = HeaderList.create();
this.queryList = PartList.create();
this.formDataList = PartList.create();
this.pathList = PartList.create();
-// } else {
-// this.headerList = copyFrom.headerList.copy();
-// this.queryList = copyFrom.queryList.copy();
-// this.formDataList = copyFrom.formDataList.copy();
-// this.pathList = copyFrom.pathList.copy();
-// }
+ } else {
+ this.headerList = copyFrom.headerList.copy();
+ this.queryList = copyFrom.queryList.copy();
+ this.formDataList = copyFrom.formDataList.copy();
+ this.pathList = copyFrom.pathList.copy();
+ }
}
/**