X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Fcommon%2Futils%2FHttpsUtils.java;h=48ed0ae246ffab64610b210112fdbb8c3845f2e3;hb=77a032f176183287746858d8eb57a6062286d327;hp=29a1c910b6db756dbbf157c22310b05d16d9920d;hpb=96a6ea5cab6575b7e04d6736cee6906298065a7b;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java b/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java index 29a1c91..48ed0ae 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java @@ -183,15 +183,7 @@ public class HttpsUtils { try { httpResponse = httpClient.execute(httpRequest); } catch (Exception e) { - e.printStackTrace(); throw new CorrelationException("Failed to get data from server" ,e); - } finally { - if (httpRequest != null) { - httpRequest.releaseConnection(); - } - if (httpClient != null) { - httpClient.close(); - } } return httpResponse; }