You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by al...@apache.org on 2016/03/19 00:18:54 UTC

[2/3] brooklyn-server git commit: Align HttpTool builder method signature with others in class

Align HttpTool builder method signature with others in class


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/29ec1ff0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/29ec1ff0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/29ec1ff0

Branch: refs/heads/master
Commit: 29ec1ff0ecd36b07f489f4b3d8b928c42a0bfb13
Parents: 18403d0
Author: Sam Corbett <sa...@cloudsoftcorp.com>
Authored: Tue Mar 15 12:08:30 2016 +0000
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Tue Mar 15 12:30:40 2016 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/brooklyn/util/http/HttpTool.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/29ec1ff0/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java
----------------------------------------------------------------------
diff --git a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java
index b9167c7..0a4bc26 100644
--- a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java
+++ b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpTool.java
@@ -293,8 +293,9 @@ public class HttpTool {
             this.credentials = checkNotNull(val, "credentials");
             return this;
         }
-        public void credential(Optional<Credentials> val) {
+        public HttpClientBuilder credential(Optional<Credentials> val) {
             if (val.isPresent()) credentials = val.get();
+            return this;
         }
         /** similar to curl --post301 -L` */
         public HttpClientBuilder laxRedirect(boolean val) {