Skip to content

Commit

Permalink
Undoing previous changes to SloccountParser (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jun 15, 2022
1 parent 16a0199 commit a39d036
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ public SloccountReport parseFiles(java.io.File[] files) {
}

private void parse(java.io.File file, SloccountReportInterface report) throws IOException {
ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
// Try cloc report file first, XML has precise structure
ClocReport.parse(file).toSloccountReport(report, commentIsCode);
} catch (JAXBException e) {
Expand All @@ -97,8 +95,6 @@ private void parse(java.io.File file, SloccountReportInterface report) throws IO
in.close();
}
}
} finally {
Thread.currentThread().setContextClassLoader(originalClassLoader);
}
}

Expand Down

0 comments on commit a39d036

Please sign in to comment.