# HG changeset patch # User Sascha L. Teichmann # Date 1302108554 0 # Node ID 23ec48ce717e689bf0e36ad89f34b0eb239a6d8e # Parent 6ef6acf30d660cb0e7d13054feab3512ee4fa257 Possible fix for flys/issue8 artifacts/trunk@1650 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 6ef6acf30d66 -r 23ec48ce717e ChangeLog --- a/ChangeLog Wed Apr 06 08:40:24 2011 +0000 +++ b/ChangeLog Wed Apr 06 16:49:14 2011 +0000 @@ -1,3 +1,12 @@ +2011-04-04 Sascha L. Teichmann + + Possible fix for flys/issue8 + + * artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java: + (repeat) The term was repeated one time too often leading to invalid + SQL statements in database cleaner. I really should start writing + unit tests. + 2011-04-06 Ingo Weinzierl * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultCollectionItem.java: diff -r 6ef6acf30d66 -r 23ec48ce717e artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java Wed Apr 06 08:40:24 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java Wed Apr 06 16:49:14 2011 +0000 @@ -87,7 +87,7 @@ return ""; } StringBuilder sb = new StringBuilder(s); - for (--count; count >= 0; --count) { + for (--count; count > 0; --count) { sb.append(sep).append(s); } return sb.toString(); @@ -98,7 +98,7 @@ return ""; } StringBuilder sb = new StringBuilder(2*count-1).append(c); - for (--count; count >= 0; --count) { + for (--count; count > 0; --count) { sb.append(sep).append(c); } return sb.toString();