Clean up formatting & Update NIO in some remaining files

This commit is contained in:
Đạt Nhân Trương
2022-08-01 14:25:32 +07:00
parent a44744c05b
commit 4496e0854f
29 changed files with 603 additions and 613 deletions

View File

@@ -130,19 +130,19 @@ public class MapInfoRetriever {
}
}
private static void writeReport() {
try(PrintWriter printWriter = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
if (!missingInfo.isEmpty()) {
for (Integer i : missingInfo) {
printWriter.println(i);
}
} else {
printWriter.println("All map files contain 'info' node.");
}
} catch (IOException e) {
e.printStackTrace();
}
}
private static void writeReport() {
try (PrintWriter printWriter = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
if (!missingInfo.isEmpty()) {
for (Integer i : missingInfo) {
printWriter.println(i);
}
} else {
printWriter.println("All map files contain 'info' node.");
}
} catch (IOException e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
for (int i = 0; i <= 9; i++) {