From 3aa02022732ca26c7c586026926674e88ab0bb2e Mon Sep 17 00:00:00 2001 From: sanchitap Date: Fri, 15 Sep 2017 11:54:44 +0530 Subject: Sonar Blocker fix Redundent if condition removed from DGXMLLoadNActive.java L70 & L102 Change-Id: Ia7c4d115e2fcbd29eb132791958286b077118441 Issue-ID: APPC-202 Signed-off-by: sanchitap --- .../main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appc-directed-graph') diff --git a/appc-directed-graph/dg-loader/provider/src/main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java b/appc-directed-graph/dg-loader/provider/src/main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java index d07621681..54f109177 100644 --- a/appc-directed-graph/dg-loader/provider/src/main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java +++ b/appc-directed-graph/dg-loader/provider/src/main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java @@ -67,7 +67,7 @@ public class DGXMLLoadNActivate { List errors = new ArrayList(); if(this.store != null){ File xmlDir = new File(xmlPath); - if(xmlDir != null && xmlDir.isDirectory()){ + if(xmlDir.isDirectory()){ String[] extensions = new String[] { "xml", "XML" }; List files = (List) FileUtils.listFiles(xmlDir, extensions, true); for (File file : files) { @@ -99,7 +99,7 @@ public class DGXMLLoadNActivate { List errors = new ArrayList(); if(this.store != null){ File activateFile = new File(activateFilePath); - if(activateFile != null && activateFile.isFile()){ + if(activateFile.isFile()){ List fileLines = FileUtils.readLines(activateFile,STRING_ENCODING); if(fileLines != null ){ for (String line : fileLines) { -- cgit 1.2.3-korg