Skip to content

Commit

Permalink
Merge pull request #292 from arunvenmany-ibm/sast_issue_fix_1.0
Browse files Browse the repository at this point in the history
removing try with resources
  • Loading branch information
arunvenmany-ibm authored Aug 7, 2024
2 parents c1206c0 + 7c7ffc8 commit 6d75f15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ private static void readElementValues(File file, Set<String> elementNames, Map<S
XMLInputFactory factory = getXmlInputFactory();
XMLEventReader reader = null;
try {
try (FileInputStream fis = new FileInputStream(file)) {
try {
FileInputStream fis = new FileInputStream(file);
reader = factory.createXMLEventReader(fis);
while (reader.hasNext()) {
XMLEvent nextEvent = reader.nextEvent();
Expand Down

0 comments on commit 6d75f15

Please sign in to comment.