Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Oct 25, 2023
1 parent 88816c5 commit f1bbf20
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,11 @@ private static void parseInclude(Document doc) throws XPathExpressionException,

ArrayList<Document> inclDocs = getIncludeDoc(includeFileName);
for (Document inclDoc : inclDocs) {
if (inclDoc != null) {
parseApplication(inclDoc, XPATH_SERVER_APPLICATION);
parseApplication(inclDoc, XPATH_SERVER_WEB_APPLICATION);
parseApplication(inclDoc, XPATH_SERVER_ENTERPRISE_APPLICATION);
// handle nested include elements
parseInclude(inclDoc);
}
parseApplication(inclDoc, XPATH_SERVER_APPLICATION);
parseApplication(inclDoc, XPATH_SERVER_WEB_APPLICATION);
parseApplication(inclDoc, XPATH_SERVER_ENTERPRISE_APPLICATION);
// handle nested include elements
parseInclude(inclDoc);
}
}
}
Expand Down Expand Up @@ -622,11 +620,9 @@ private static void parseIncludeVariables(Document doc) throws XPathExpressionEx
ArrayList<Document> inclDocs = getIncludeDoc(includeFileName);

for (Document inclDoc : inclDocs) {
if (inclDoc != null) {
parseVariablesForBothValues(inclDoc);
// handle nested include elements
parseIncludeVariables(inclDoc);
}
parseVariablesForBothValues(inclDoc);
// handle nested include elements
parseIncludeVariables(inclDoc);
}
}
}
Expand Down

0 comments on commit f1bbf20

Please sign in to comment.