diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-09-28 20:21:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-28 20:21:15 +0000 |
commit | e12c6cc9f74fce2b6dcf8ea2c2b573fa7f5ed96c (patch) | |
tree | 2925d0d3b9d2b722908c91163aacb3921a14aede /controlloop | |
parent | 81bfa858b68d9f4cadf4b666e8bf96c4402fe103 (diff) | |
parent | bde1be60a856ecd9e56f16615251e26af0411c62 (diff) |
Merge "Fix Sonar Criticals"
Diffstat (limited to 'controlloop')
-rw-r--r-- | controlloop/common/msb/src/main/java/org/onap/policy/msb/client/MSBServiceFactory.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/controlloop/common/msb/src/main/java/org/onap/policy/msb/client/MSBServiceFactory.java b/controlloop/common/msb/src/main/java/org/onap/policy/msb/client/MSBServiceFactory.java index cc3ff71e3..68550ef8b 100644 --- a/controlloop/common/msb/src/main/java/org/onap/policy/msb/client/MSBServiceFactory.java +++ b/controlloop/common/msb/src/main/java/org/onap/policy/msb/client/MSBServiceFactory.java @@ -13,26 +13,27 @@ ******************************************************************************/
package org.onap.policy.msb.client;
-import org.onap.msb.sdk.discovery.common.RouteException;
-import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo;
-import org.onap.msb.sdk.discovery.entity.NodeInfo;
-import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
import java.io.FileInputStream;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
+import java.io.Serializable;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Iterator;
import java.util.Properties;
+import org.onap.msb.sdk.discovery.common.RouteException;
+import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo;
+import org.onap.msb.sdk.discovery.entity.NodeInfo;
+import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
-public class MSBServiceFactory {
- private static final Logger logger = LoggerFactory.getLogger(MSBServiceFactory.class);
+public class MSBServiceFactory implements Serializable {
+ private static final long serialVersionUID = 4638414146278012425L;
+ private static final Logger logger = LoggerFactory.getLogger(MSBServiceFactory.class);
private static final String msbPropertyFile = "msb.policy.properties";
private static final String MSB_IP = "msb.ip";
private static final String MSB_PORT = "msb.port";
|