aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph/dg-loader/provider/src
diff options
context:
space:
mode:
Diffstat (limited to 'appc-directed-graph/dg-loader/provider/src')
-rw-r--r--appc-directed-graph/dg-loader/provider/src/main/java/org/openecomp/sdnc/dg/loader/DGXMLLoadNActivate.java4
1 files changed, 2 insertions, 2 deletions
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<String> errors = new ArrayList<String>();
if(this.store != null){
File xmlDir = new File(xmlPath);
- if(xmlDir != null && xmlDir.isDirectory()){
+ if(xmlDir.isDirectory()){
String[] extensions = new String[] { "xml", "XML" };
List<File> files = (List<File>) FileUtils.listFiles(xmlDir, extensions, true);
for (File file : files) {
@@ -99,7 +99,7 @@ public class DGXMLLoadNActivate {
List<String> errors = new ArrayList<String>();
if(this.store != null){
File activateFile = new File(activateFilePath);
- if(activateFile != null && activateFile.isFile()){
+ if(activateFile.isFile()){
List<String> fileLines = FileUtils.readLines(activateFile,STRING_ENCODING);
if(fileLines != null ){
for (String line : fileLines) {