# HG changeset patch # User Sascha L. Teichmann # Date 1310378533 0 # Node ID 7121a40671ffe54495546380c37e744fae175fc5 # Parent c7370734b872693034bb8f3e26033904c5ad3dc6 HashedFile: Forget to call the file hashing so only the file lengths were compared. flys-backend/trunk@2316 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c7370734b872 -r 7121a40671ff flys-backend/ChangeLog --- a/flys-backend/ChangeLog Mon Jul 11 09:31:52 2011 +0000 +++ b/flys-backend/ChangeLog Mon Jul 11 10:02:13 2011 +0000 @@ -1,4 +1,10 @@ -2011-07-08 Sascha L. Teichmann +2011-07-11 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/utils/FileTools.java: Argh! + Forget to call the file hashing so only the file lengths were + compared. + +2011-07-11 Sascha L. Teichmann * src/main/java/de/intevation/flys/utils/FileTools.java: Added a class HashedFile to compare files by there length diff -r c7370734b872 -r 7121a40671ff flys-backend/src/main/java/de/intevation/flys/utils/FileTools.java --- a/flys-backend/src/main/java/de/intevation/flys/utils/FileTools.java Mon Jul 11 09:31:52 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/utils/FileTools.java Mon Jul 11 10:02:13 2011 +0000 @@ -148,7 +148,7 @@ public int compareTo(HashedFile other) { if (length < other.length) return -1; if (length > other.length) return +1; - return 0; + return compare(getHash(), other.getHash()); } private static int compare(byte [] a, byte [] b) {