diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-12-17 17:33:51 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-12-17 17:34:00 +0530 |
commit | fb7fd136bdbab1799bb932f53feedf349715c39a (patch) | |
tree | 21bce4c4ecae2839187552d088e501b869b9bdbc | |
parent | 0d1a8d87eadc7a6a6d46b096752a2b80f4cfae9e (diff) |
Sonar Fix: RetryPolicyStore.java
Fixed sonar issues/code-smellls across this file
Issue-ID: CCSDK-845
Change-Id: I0a4a59ea875739839a692acec7f1feafb013d32e
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r-- | restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java index 775137fff..e4ba5fda6 100644 --- a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java +++ b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java @@ -4,6 +4,7 @@ * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights * reserved. + * Modifications Copyright © 2018 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +28,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class RetryPolicyStore { - private static final Logger log = LoggerFactory.getLogger(RetryPolicyStore.class); - HashMap<String, RetryPolicy> retryPolicies; public String proxyServers; + public RetryPolicyStore() { + retryPolicies = new HashMap<>(); + } + public String getProxyServers() { return proxyServers; } @@ -42,10 +45,6 @@ public class RetryPolicyStore { RetryPolicy adminPortalRetry = new RetryPolicy(adminServersArray, adminServersArray.length); retryPolicies.put("dme2proxy", adminPortalRetry); } - - public RetryPolicyStore() { - retryPolicies = new HashMap<>(); - } public RetryPolicy getRetryPolicy(String policyName) { return (this.retryPolicies.get(policyName)); |