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.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
//TODO: Remove BZIP2 and LZMA compressors. As for the popular vote
|
||||||
@Config(name = TextileBackup.MOD_ID)
|
@Config(name = TextileBackup.MOD_ID)
|
||||||
public class ConfigPOJO implements ConfigData {
|
public class ConfigPOJO implements ConfigData {
|
||||||
@Comment("\nShould every world have its own backup folder?\n")
|
@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(treeHash)
|
||||||
.append(", Date: ")
|
.append(", Date: ")
|
||||||
.append(date.format(DateTimeFormatter.ISO_DATE_TIME))
|
.append(date.format(DateTimeFormatter.ISO_DATE_TIME))
|
||||||
.append(", start time stamp: ").append(startTimestamp)
|
.append(", start timestamp: ").append(startTimestamp)
|
||||||
.append(", finish time stamp: ").append(finishTimestamp)
|
.append(", finish timestamp: ").append(finishTimestamp)
|
||||||
.append(", Mod Version: ").append(version);
|
.append(", Mod Version: ").append(version);
|
||||||
|
|
||||||
builder.append(", broken files: ");
|
builder.append(", broken files: ");
|
||||||
|
@ -39,8 +39,8 @@ public record FileInputStreamSupplier(Path path, String name, FileTreeHashBuilde
|
|||||||
try {
|
try {
|
||||||
return new HashingInputStream(Files.newInputStream(path), path, hashTreeBuilder, brokenFileHandler, latch);
|
return new HashingInputStream(Files.newInputStream(path), path, hashTreeBuilder, brokenFileHandler, latch);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
//Probably good idea to just put it here. In the case an exception is thrown here, it would be probable
|
//Probably good idea to just put it here. In the case an exception is thrown here, it could be possble
|
||||||
//The latch would never be lifted
|
//The latch would have never been lifted
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
brokenFileHandler.handle(path, e);
|
brokenFileHandler.handle(path, e);
|
||||||
throw e;
|
throw e;
|
||||||
|
Loading…
Reference in New Issue
Block a user