in apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java [104:120]
private ClaimStatistic getRawReport()
throws MojoExecutionException, MojoFailureException {
Writer fw = null;
try {
fw = new OutputStreamWriter(
new FileOutputStream(reportFile),
StandardCharsets.UTF_8);
final ClaimStatistic statistic = createReport(fw, getStyleSheet());
fw.close();
fw = null;
return statistic;
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e);
} finally {
IOUtils.closeQuietly(fw);
}
}