Removal of unused private field
authorprakash.e <prakash.e@huawei.com>
Thu, 21 Dec 2017 11:22:36 +0000 (16:52 +0530)
committerprakash eswaramoorthy <prakash.e@huawei.com>
Thu, 21 Dec 2017 11:35:14 +0000 (11:35 +0000)
Change-Id: Ie2d33f7f9dba20a4d0fdf6a33f8574e953633a69
Issue-ID: CCSDK-151
Signed-off-by: prakash.e <prakash.e@huawei.com>
dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncDmaapConsumer.java
dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncFlatJsonDmaapConsumer.java

index a51ea7c..a9f5fed 100644 (file)
@@ -35,7 +35,6 @@ public abstract class SdncDmaapConsumer implements Runnable {
     private static final Logger LOG = LoggerFactory
         .getLogger(SdncDmaapConsumer.class);
 
-    private String propertiesPath = "";
     private Properties properties = null;
     private MRConsumer consumer = null;
     private MRConsumerResponse consumerResponse = null;
@@ -62,13 +61,11 @@ public abstract class SdncDmaapConsumer implements Runnable {
     }
 
     public String getProperty(String name) {
-        return (properties.getProperty(name, ""));
+        return properties.getProperty(name, "");
     }
 
     public void init(Properties properties, String propertiesPath) {
 
-        this.propertiesPath = propertiesPath;
-
         try (FileInputStream in = new FileInputStream(new File(propertiesPath))) {
 
            LOG.debug("propertiesPath: " + propertiesPath);
index 1d499a1..ce65e78 100644 (file)
@@ -124,6 +124,8 @@ public class SdncFlatJsonDmaapConsumer extends SdncDmaapConsumer {
     private Map<String, String> loadMap(String msgType, String mapDirName) {
         Map<String, String> results = new HashMap<>();
 
+        String dirName = mapDirName;
+
         if (mapDirName == null) {
             String rootdir = System.getenv(DMAAPLISTENERROOT);
 
@@ -131,10 +133,10 @@ public class SdncFlatJsonDmaapConsumer extends SdncDmaapConsumer {
                 rootdir = "/opt/app/dmaap-listener";
             }
 
-            mapDirName = rootdir + "/lib";
+            dirName = rootdir + "/lib";
         }
 
-        String mapFilename = mapDirName + "/" + msgType + ".map";
+        String mapFilename = dirName + "/" + msgType + ".map";
 
         File mapFile = new File(mapFilename);