Merge remote-tracking branch 'github/develop'
* github/develop: Use Files.readAllLines Close file ready with try-with-resources
This commit is contained in:
commit
7826927f58
1 changed files with 1 additions and 2 deletions
|
@ -94,8 +94,7 @@ class ReadmeWriter implements CommandLineRunner {
|
|||
}
|
||||
|
||||
private String readFile(final Path file) throws IOException {
|
||||
return Files.lines(file, StandardCharsets.UTF_8)
|
||||
.collect(Collectors.joining(NEWLINE));
|
||||
return String.join(NEWLINE, Files.readAllLines(file, StandardCharsets.UTF_8));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue