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

@@ -156,18 +156,16 @@ public class CashVegaChecker {
}
private static void reportMissingVegaItems() {
//NEED FUTURE UPDATE
System.out.println("Reporting results ...");
try {
printWriter = new PrintWriter(Files.newOutputStream(OUTPUT_FILE));
try (PrintWriter pw = new PrintWriter(Files.newOutputStream(OUTPUT_FILE))) {
printWriter = pw;
printReportFileHeader();
for (Integer itemid : vegaItems) {
printWriter.println(" " + itemid);
}
printWriter.close();
} catch (IOException ioe) {
ioe.printStackTrace();
}