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

Upgrade jersey-client to version 1.12 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.5</version>
<version>1.12</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>1.5</version>
<version>1.12</version>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
Expand Down Expand Up @@ -103,8 +103,8 @@
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.5</version>
<artifactId>jersey-grizzly</artifactId>
<version>1.12</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void destroy(){
}

@Override
protected void finalize(){
protected void finalize() throws Throwable{
try {
// Do not close the AHCClient.
super.destroy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void configureHeaders(MultivaluedMap<String, Object> metadata, RequestBu
if (String.class.isAssignableFrom( o.getClass() )) {
requestBuilder.addHeader(e.getKey(), o.toString());
} else {
requestBuilder.addHeader(e.getKey(), headerValueToString(o));
requestBuilder.addHeader(e.getKey(), ClientRequest.getHeaderValue(o));
}
}
}
Expand Down