1- package com .github .dockerjava .core ;
1+ package com .github .dockerjava .core ;
22
3- import com .google .common .base .Preconditions ;
4- import com .google .common .collect .ImmutableMap ;
3+ import com .google .common .base .Preconditions ;
4+ import com .google .common .collect .ImmutableMap ;
55
6- import java .io .File ;
7- import java .io .FileInputStream ;
8- import java .io .IOException ;
9- import java .net .URI ;
10- import java .util .Map ;
11- import java .util .Properties ;
6+ import java .io .File ;
7+ import java .io .FileInputStream ;
8+ import java .io .IOException ;
9+ import java .net .URI ;
10+ import java .util .Map ;
11+ import java .util .Properties ;
1212
1313public class DockerClientConfig {
1414 private static final String DOCKER_HOST_PROPERTY = "DOCKER_HOST" ;
@@ -257,9 +257,6 @@ public static class DockerClientConfigBuilder {
257257 private Integer readTimeout ;
258258 private boolean loggingFilterEnabled ;
259259
260- private DockerClientConfigBuilder () {
261- }
262-
263260 /**
264261 * This will set all fields in the builder to those contained in the Properties object. The Properties object
265262 * should contain the following docker.io.* keys: url, version, username, password, email, and dockerCertPath. If
@@ -278,38 +275,46 @@ public DockerClientConfigBuilder withProperties(Properties p) {
278275 }
279276
280277 public final DockerClientConfigBuilder withUri (String uri ) {
281- Preconditions .checkNotNull (uri , "uri was not specified" );
278+ Preconditions .checkNotNull (uri , "uri was not specified" );
282279 this .uri = URI .create (uri );
283280 return this ;
284281 }
282+
285283 public final DockerClientConfigBuilder withVersion (String version ) {
286- this .version = version ;
284+ this .version = version ;
287285 return this ;
288286 }
287+
289288 public final DockerClientConfigBuilder withUsername (String username ) {
290- this .username = username ;
289+ this .username = username ;
291290 return this ;
292291 }
292+
293293 public final DockerClientConfigBuilder withPassword (String password ) {
294- this .password = password ;
294+ this .password = password ;
295295 return this ;
296296 }
297+
297298 public final DockerClientConfigBuilder withEmail (String email ) {
298- this .email = email ;
299+ this .email = email ;
299300 return this ;
300301 }
302+
301303 public final DockerClientConfigBuilder withReadTimeout (Integer readTimeout ) {
302- this .readTimeout = readTimeout ;
304+ this .readTimeout = readTimeout ;
303305 return this ;
304306 }
307+
305308 public final DockerClientConfigBuilder withLoggingFilter (boolean loggingFilterEnabled ) {
306309 this .loggingFilterEnabled = loggingFilterEnabled ;
307310 return this ;
308311 }
312+
309313 public final DockerClientConfigBuilder withDockerCertPath (String dockerCertPath ) {
310314 this .dockerCertPath = dockerCertPath ;
311315 return this ;
312316 }
317+
313318 public DockerClientConfig build () {
314319 return new DockerClientConfig (
315320 uri ,
0 commit comments