formatting&spelling
This commit is contained in:
parent
ed9c9a16fc
commit
97c607f9b2
@ -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")
|
||||
|
@ -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: ");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user