Merge "Sonar Fix: RetryPolicyStore.java"
authorDan Timoney <dtimoney@att.com>
Mon, 17 Dec 2018 20:51:22 +0000 (20:51 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 17 Dec 2018 20:51:22 +0000 (20:51 +0000)
restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RetryPolicyStore.java

index 775137f..e4ba5fd 100644 (file)
@@ -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));