Claudenw commented on code in PR #249:
URL: https://github.com/apache/creadur-rat/pull/249#discussion_r1597628383
##########
apache-rat-core/src/main/java/org/apache/rat/Report.java:
##########
@@ -405,7 +422,6 @@ static ReportConfiguration createConfiguration(String
baseDirectory, CommandLine
}
URL url =
Report.class.getClassLoader().getResource(String.format("org/apache/rat/%s.xsl",
style[0]));
-
Review Comment:
We don't actually open the file here. We create an IOSupplier that we will
use to open the stream later. The IOSupplier gives us the ability to use the
`try (closable thing) {` block.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]