]> source.dussan.org Git - sonarqube.git/commitdiff
Make OkHttpClientBuilder.setCredentials return this
authorJanos Gyerik <janos.gyerik@sonarsource.com>
Wed, 7 Nov 2018 07:38:17 +0000 (08:38 +0100)
committerSonarTech <sonartech@sonarsource.com>
Tue, 8 Jan 2019 19:21:04 +0000 (20:21 +0100)
sonar-ws/src/main/java/org/sonarqube/ws/client/OkHttpClientBuilder.java

index e7afbb03bfb638555386b537a7b9b40df93ffa41..1ed791cd267c7c74b1cc22e52e9ff2409ae8b17a 100644 (file)
@@ -142,8 +142,9 @@ public class OkHttpClientBuilder {
   /**
    * Set credentials that will be passed on every request
    */
-  public void setCredentials(String credentials) {
+  public OkHttpClientBuilder setCredentials(String credentials) {
     this.credentials = credentials;
+    return this;
   }
 
   /**