Skip to content

Commit

Permalink
small part of Bosts patch
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2517 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 8, 2006
1 parent 96c6e4e commit c2e6cc8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions source/de/anomic/server/serverFileUtils.java
Expand Up @@ -326,16 +326,9 @@ public static void saveSet(File file, String format, Set set, String sep) throws
zos.putNextEntry(new ZipEntry(name + ".txt"));
os = zos;
}
Iterator i = set.iterator();
String key;
if (i.hasNext()) {
key = i.next().toString();
os.write(key.getBytes());
}
while (i.hasNext()) {
key = i.next().toString();
for (Iterator i = set.iterator(); i.hasNext(); ) {
os.write((i.next().toString()).getBytes());
if (sep != null) os.write(sep.getBytes());
os.write(key.getBytes());
}
os.close();
file.delete();
Expand Down

0 comments on commit c2e6cc8

Please sign in to comment.