formatting&spelling

This commit is contained in:
Szum123321 2022-12-20 00:48:20 +01:00
parent ed9c9a16fc
commit 97c607f9b2
3 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@ import net.szum123321.textile_backup.TextileBackup;
import java.time.format.DateTimeFormatter;
import java.util.*;
//TODO: Remove BZIP2 and LZMA compressors. As for the popular vote
@Config(name = TextileBackup.MOD_ID)
public class ConfigPOJO implements ConfigData {
@Comment("\nShould every world have its own backup folder?\n")

View File

@ -71,8 +71,8 @@ public record CompressionStatus(long treeHash, Map<Path, Exception> brokenFiles,
.append(treeHash)
.append(", Date: ")
.append(date.format(DateTimeFormatter.ISO_DATE_TIME))
.append(", start time stamp: ").append(startTimestamp)
.append(", finish time stamp: ").append(finishTimestamp)
.append(", start timestamp: ").append(startTimestamp)
.append(", finish timestamp: ").append(finishTimestamp)
.append(", Mod Version: ").append(version);
builder.append(", broken files: ");

View File

@ -39,8 +39,8 @@ public record FileInputStreamSupplier(Path path, String name, FileTreeHashBuilde
try {
return new HashingInputStream(Files.newInputStream(path), path, hashTreeBuilder, brokenFileHandler, latch);
} catch (IOException e) {
//Probably good idea to just put it here. In the case an exception is thrown here, it would be probable
//The latch would never be lifted
//Probably good idea to just put it here. In the case an exception is thrown here, it could be possble
//The latch would have never been lifted
latch.countDown();
brokenFileHandler.handle(path, e);
throw e;