diff options
author | 2018-02-20 11:05:09 +0530 | |
---|---|---|
committer | 2018-02-20 11:05:09 +0530 | |
commit | 82abcef86c72ee95b628752746db112541b43f91 (patch) | |
tree | bd55273c2d566162aba390dcc0ebff1b3bc55cf8 /ResmanagementService | |
parent | 3b538606bceeb0c5b66ce102e001ff9b3802d06e (diff) |
Sonar fix for improving maintainability
Issue-ID: VFC-764
Change-Id: I73e952241d07c543a3e3d02e6de9cbecf724a9b7
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'ResmanagementService')
2 files changed, 6 insertions, 4 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpBaseRest.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpBaseRest.java index 9cc832f..c962bdc 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpBaseRest.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpBaseRest.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; * <br/> * <p> * </p> - * + * * @author * @version Aug 9, 2016 */ @@ -49,7 +49,7 @@ public abstract class HttpBaseRest implements Restful { protected HttpClient client = null; - private static final String LOCAL_HOST = "127.0.0.1"; + private static final String LOCAL_HOST = "127.0.0.1"; // NOSONAR static final String HTTP_PATCH = "PATCH"; @@ -65,7 +65,7 @@ public abstract class HttpBaseRest implements Restful { * Constructor<br/> * <p> * </p> - * + * * @since */ public HttpBaseRest() { @@ -135,7 +135,7 @@ public abstract class HttpBaseRest implements Restful { /** * <br/> - * + * * @param method * @param servicePath * @param restParametes diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java index 66b8f5f..4d1ff69 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java @@ -188,6 +188,8 @@ public class HttpsRest extends HttpBaseRest { } } catch(InterruptedException e) { LOG.error("InterruptedException", e); + // Restore interrupted state... + Thread.currentThread().interrupt(); } catch(UnsupportedEncodingException e) { LOG.error("UnsupportedEncodingException", e); } |