From 42e4c4138dcb2382e7ee743e73b3c44e0d07d034 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Fri, 17 Sep 2010 20:45:56 +0000 Subject: [PATCH] Reverted r2884. If someone wants to use StringUtil.toString(), let them get the openBox/closeBox/separators they were expected. Gee, I hope r2885 didn't beak any Log parsing code... git-svn-id: https://samskivert.googlecode.com/svn/trunk@2886 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/main/java/com/samskivert/util/StringUtil.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/samskivert/util/StringUtil.java b/src/main/java/com/samskivert/util/StringUtil.java index b08c70f4..88188694 100644 --- a/src/main/java/com/samskivert/util/StringUtil.java +++ b/src/main/java/com/samskivert/util/StringUtil.java @@ -531,9 +531,6 @@ public class StringUtil } buf.append(closeBox); - } else if (val instanceof Collection) { - buf.append(val); // Collections should have reasonable toStrings - } else if (val instanceof Iterable) { toString(buf, ((Iterable)val).iterator(), openBox, closeBox);