From 84d0e55e2b66dd1dabbfe85b48e7b847d17a756f Mon Sep 17 00:00:00 2001 From: jitendra sharma Date: Tue, 18 Feb 2020 11:12:17 +0000 Subject: Change dependency version for httpclient Issue-ID: CLI-246 Signed-off-by: jitendra sharma Change-Id: Ie4b71259559927f485095021b6e87780698e9c92 --- profiles/http/pom.xml | 18 +++++++++++++++++- .../onap/cli/fw/http/connect/OnapHttpConnection.java | 5 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) (limited to 'profiles') diff --git a/profiles/http/pom.xml b/profiles/http/pom.xml index b8563e48..9268895d 100644 --- a/profiles/http/pom.xml +++ b/profiles/http/pom.xml @@ -37,11 +37,27 @@ cli-sample-mock-generator ${project.version} + org.apache.httpcomponents httpclient - 4.3.5 + 4.5.7 + + + commons-codec + commons-codec + + + + commons-codec + commons-codec + 1.13 + org.apache.httpcomponents httpmime diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java index 3f426bf3..e8924470 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java @@ -35,7 +35,8 @@ import javax.net.ssl.X509TrustManager; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; -import org.apache.http.annotation.NotThreadSafe; +import org.apache.http.annotation.Contract; +import org.apache.http.annotation.ThreadingBehavior; import org.apache.http.client.CookieStore; import org.apache.http.client.HttpClient; import org.apache.http.client.config.RequestConfig; @@ -372,7 +373,7 @@ public class OnapHttpConnection { } } - @NotThreadSafe + @Contract(threading = ThreadingBehavior.UNSAFE) static class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase { public HttpDeleteWithBody() { -- cgit 1.2.3-korg