Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Upgrade guava to 20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasniemeier-zalando committed Jun 12, 2017
1 parent 6f676a6 commit 6d0a4cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
<version>20.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,7 @@ public static Builder fromEnv() throws DockerCertificateException {
} else {
final String stripped = endpoint.replaceAll(".*://", "");
final HostAndPort hostAndPort = HostAndPort.fromString(stripped);
final String hostText = hostAndPort.getHostText();
final String hostText = hostAndPort.getHost();
final String scheme = certs.isPresent() ? "https" : "http";

final int port = hostAndPort.getPortOrDefault(DockerHost.defaultPort());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/spotify/docker/client/DockerHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private DockerHost(final String endpoint, final String certPath) {
} else {
final String stripped = endpoint.replaceAll(".*://", "");
final HostAndPort hostAndPort = HostAndPort.fromString(stripped);
final String hostText = hostAndPort.getHostText();
final String hostText = hostAndPort.getHost();
final String scheme = isNullOrEmpty(certPath) ? "http" : "https";

this.port = hostAndPort.getPortOrDefault(defaultPort());
Expand Down

0 comments on commit 6d0a4cf

Please sign in to comment.