From 21930d05ed0cf4dcdde3ff4ac2ff8131e5ddfa62 Mon Sep 17 00:00:00 2001 From: borg-0300 Date: Sun, 10 May 2009 10:54:06 +0000 Subject: [PATCH] fix for [B@... git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5941 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/util/SetTools.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source/de/anomic/kelondro/util/SetTools.java b/source/de/anomic/kelondro/util/SetTools.java index 4fbdaae8a..9c8207c9d 100644 --- a/source/de/anomic/kelondro/util/SetTools.java +++ b/source/de/anomic/kelondro/util/SetTools.java @@ -1,10 +1,14 @@ -// kelondroMSetTools.java +// kelondroMSetTools.java // ------------------------------------- // (C) by Michael Peter Christen; mc@yacy.net // first published on http://www.anomic.de // Frankfurt, Germany, 2004 // last major change: 28.12.2004 // +// $LastChangedDate$ +// $LastChangedRevision$ +// $LastChangedBy$ +// // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or @@ -420,7 +424,7 @@ public class SetTools { } return list; } - + public static String setToString(final TreeSet set, final char separator) { final Iterator i = set.iterator(); final StringBuilder sb = new StringBuilder(set.size() * 7); @@ -428,7 +432,7 @@ public class SetTools { while (i.hasNext()) { sb.append(separator).append(new String(i.next())); } - return new String(sb); + return sb.toString(); } public static String setToString(final Set set, final char separator) { final Iterator i = set.iterator(); @@ -437,9 +441,9 @@ public class SetTools { while (i.hasNext()) { sb.append(separator).append(i.next()); } - return new String(sb); + return sb.toString(); } - + // ------------------------------------------------------------------------------------------------