From e88c51c152801440ba57ee4a0ad06a471615d872 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 1 Jun 2021 09:53:52 +0200 Subject: [PATCH] Removed debug statement. --- src/main/java/nl/andrewlalis/crystalkeep/io/ClusterIO.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/nl/andrewlalis/crystalkeep/io/ClusterIO.java b/src/main/java/nl/andrewlalis/crystalkeep/io/ClusterIO.java index 725e538..884b0e2 100644 --- a/src/main/java/nl/andrewlalis/crystalkeep/io/ClusterIO.java +++ b/src/main/java/nl/andrewlalis/crystalkeep/io/ClusterIO.java @@ -58,7 +58,6 @@ public class ClusterIO { public Cluster load(Path path, char[] password) throws Exception { try (var is = Files.newInputStream(path)) { int version = ByteUtils.readInt(is); - System.out.println("File version: " + version); if (version < FILE_VERSION) { System.err.println("Warning! Reading older file version: " + version); } @@ -126,6 +125,9 @@ public class ClusterIO { public Cluster loadUnencrypted(Path path) throws IOException { try (var is = Files.newInputStream(path)) { int version = ByteUtils.readInt(is); + if (version < FILE_VERSION) { + System.err.println("Warning! Reading older file version: " + version); + } int encryptionFlag = is.read(); if (encryptionFlag == 1) throw new IOException("File is encrypted."); return ClusterSerializer.readCluster(is);