[java-support] 03/03: Move ctor init of collection props to resetDefaults() like the others.

Brent Putman putmanb at georgetown.edu
Wed Mar 13 20:37:02 EDT 2019


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch master
in repository java-support.

View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=e9e1716dec11b430ca1f759b46c856102fd9eb7d

commit e9e1716dec11b430ca1f759b46c856102fd9eb7d
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Wed Mar 13 20:28:41 2019 -0400

    Move ctor init of collection props to resetDefaults() like the others.
---
 .../utilities/java/support/httpclient/HttpClientBuilder.java     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/httpclient/HttpClientBuilder.java b/src/main/java/net/shibboleth/utilities/java/support/httpclient/HttpClientBuilder.java
index cd5b057..68ef548 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/httpclient/HttpClientBuilder.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/httpclient/HttpClientBuilder.java
@@ -271,10 +271,6 @@ public class HttpClientBuilder {
     public HttpClientBuilder(@Nonnull final org.apache.http.impl.client.HttpClientBuilder builder) {
         apacheBuilder = Constraint.isNotNull(builder, "Apache HttpClientBuilder may not be null");
         resetDefaults();
-        requestInterceptorsFirst = Collections.emptyList();
-        requestInterceptorsLast = Collections.emptyList();
-        responseInterceptorsFirst = Collections.emptyList();
-        responseInterceptorsLast = Collections.emptyList();
     }
 
     /** Resets all builder parameters to their defaults. */
@@ -296,6 +292,11 @@ public class HttpClientBuilder {
         httpFollowRedirects = true;
         httpContentCharSet = "UTF-8";
         userAgent = null;
+        
+        requestInterceptorsFirst = Collections.emptyList();
+        requestInterceptorsLast = Collections.emptyList();
+        responseInterceptorsFirst = Collections.emptyList();
+        responseInterceptorsLast = Collections.emptyList();
     }
 
     /**

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list