builder:CheckstyleWriter: use UTF-8 encoding to load XML template
This commit is contained in:
parent
be2e92bdb6
commit
c027c372d8
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ class CheckstyleWriter implements CommandLineRunner {
|
|||
val checkstyleXmlTemplate = templateProperties.getCheckstyleXml();
|
||||
if (checkstyleXmlTemplate.toFile()
|
||||
.exists()) {
|
||||
val template = new String(Files.readAllBytes(checkstyleXmlTemplate));
|
||||
val bytes = Files.readAllBytes(checkstyleXmlTemplate);
|
||||
val template = new String(bytes, StandardCharsets.UTF_8);
|
||||
val output = Arrays.asList(String.format(template, checkerRules, treeWalkerRules)
|
||||
.split(NEWLINE));
|
||||
log.info("Writing xmlFile: {}", xmlFile);
|
||||
|
|
Loading…
Reference in a new issue