Skip to content

Commit 0bb86a9

Browse files
Update refactor-first-maven-plugin/src/main/java/org/hjug/mavenreport/ReportWriter.java
Co-authored-by: sonatype-lift[bot] <37194012+sonatype-lift[bot]@users.noreply.github.com>
1 parent a92c354 commit 0bb86a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refactor-first-maven-plugin/src/main/java/org/hjug/mavenreport/ReportWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void writeReportToDisk(
3333
log.error("Failure creating chart script file", e);
3434
}
3535

36-
try(BufferedWriter writer = new BufferedWriter(new FileWriter(reportFile))) {
36+
try(BufferedWriter writer = Files.newBufferedWriter(reportFile.toPath(), UTF_8)) {' or 'try(BufferedWriter writer = Files.newBufferedWriter(reportFile.toPath(), Charset.defaultCharset())) {
3737
writer.write(stringBuilder.toString());
3838
} catch (IOException e) {
3939
log.error("Error writing chart script file", e);

0 commit comments

Comments
 (0)