-
Sub-task
-
Resolution: Done
-
Major
-
None
-
8.0.0 - Beta3
as Java 7 is required, we can replace:
try(BufferedReader br = new BufferedReader(new FileReader(path))) {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
sb.append(System.lineSeparator());
line = br.readLine();
}
String everything = sb.toString();
return everything;
}
by
Path filePath = new File(path).toPath(); return new String(Files.readAllBytes(filePath), StandardCharsets.UTF_8);
--> need to update locally embedded example
--> need to update upstream archetype