Remove useless assigment to local variables 37/13837/1
authorsurya-huawei <a.u.surya@huawei.com>
Wed, 20 Sep 2017 10:48:41 +0000 (16:18 +0530)
committersurya-huawei <a.u.surya@huawei.com>
Wed, 20 Sep 2017 10:51:59 +0000 (16:21 +0530)
*Removed dead stores
This is done to avoid waste of resources

Issue-Id: CCSDK-87
Change-Id: Ie36255c6583792e2535000ee1bd5b2a3018632ff
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
dmaap-listener/src/main/java/org/onap/ccsdk/sli/northbound/dmaapclient/SdncFlatJsonDmaapConsumer.java
ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebConfiguration.java

index aa3f726..60a508e 100644 (file)
@@ -59,8 +59,8 @@ public class SdncFlatJsonDmaapConsumer extends SdncDmaapConsumer {
                }
 
                ObjectMapper oMapper = new ObjectMapper();
-               JsonNode instarRootNode = null;
-               ObjectNode sdncRootNode = null;
+               JsonNode instarRootNode ;
+               ObjectNode sdncRootNode;
 
                String instarMsgName = null;
 
index e7a42bc..6a0c8c3 100644 (file)
@@ -189,7 +189,7 @@ public class SdncUebCallback implements INotificationCallback {
 
        private static void setJdbcDataSource() throws IOException {
 
-               String propPath = null;
+               String propPath;
                String propDir = System.getenv(SDNC_CONFIG_DIR);
                if (propDir == null) {
 
@@ -1056,8 +1056,7 @@ public class SdncUebCallback implements INotificationCallback {
 
     private File applyXslts(File srcFile) {
 
-        Document doc = null;
-
+        Document doc;
 
         File inFile = srcFile;
         File outFile = null;
index 3ea092d..fdae95d 100644 (file)
@@ -91,7 +91,7 @@ public class SdncUebConfiguration implements IConfiguration{
        }
 
        public void init() throws IOException {
-               String propPath = null;
+               String propPath;
                String propDir = System.getenv(SDNC_CONFIG_DIR);
                if (propDir == null) {