Skip to content

Commit 2fb8742

Browse files
committed
use latest working
1 parent 34b8ad9 commit 2fb8742

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<jersey.version>2.23.1</jersey.version>
5151
<jackson-jaxrs.version>2.6.4</jackson-jaxrs.version>
52-
<httpclient.version>4.5</httpclient.version>
52+
<httpclient.version>4.5</httpclient.version><!-- 4.5.1-4.5.2 broken -->
5353
<commons-compress.version>1.12</commons-compress.version>
5454
<commons-codec.version>1.10</commons-codec.version>
5555
<commons-io.version>2.5</commons-io.version>
@@ -92,7 +92,7 @@
9292
<dependency>
9393
<groupId>org.apache.httpcomponents</groupId>
9494
<artifactId>httpcore</artifactId>
95-
<version>4.4</version>
95+
<version>4.4.5</version>
9696
</dependency>
9797
<dependency>
9898
<groupId>org.apache.httpcomponents</groupId>

src/main/java/com/github/dockerjava/jaxrs/UnixConnectionSocketFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
import java.net.URI;
3030

3131
import org.apache.http.HttpHost;
32-
import org.apache.http.annotation.Immutable;
32+
import org.apache.http.annotation.Contract;
33+
import org.apache.http.annotation.ThreadingBehavior;
3334
import org.apache.http.conn.ConnectTimeoutException;
3435
import org.apache.http.conn.socket.ConnectionSocketFactory;
3536
import org.apache.http.protocol.HttpContext;
@@ -38,7 +39,7 @@
3839
/**
3940
* Provides a ConnectionSocketFactory for connecting Apache HTTP clients to Unix sockets.
4041
*/
41-
@Immutable
42+
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL)
4243
public class UnixConnectionSocketFactory implements ConnectionSocketFactory {
4344

4445
private File socketFile;

0 commit comments

Comments
 (0)