From 7480bb2e6c2f45a6cf57994427f26a85f21afa6b Mon Sep 17 00:00:00 2001 From: samskivert Date: Mon, 11 Jan 2010 05:19:38 +0000 Subject: [PATCH] We should be toString-ing right into our StringBuilder and using the specified open and close boxes for the internal elements of our sequences. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2693 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/StringUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/util/StringUtil.java b/src/java/com/samskivert/util/StringUtil.java index 14c69a1f..4e885b35 100644 --- a/src/java/com/samskivert/util/StringUtil.java +++ b/src/java/com/samskivert/util/StringUtil.java @@ -513,7 +513,7 @@ public class StringUtil if (i > 0) { buf.append(sep); } - buf.append(toString(v[i])); + toString(buf, v[i], openBox, closeBox); } buf.append(closeBox); @@ -538,7 +538,7 @@ public class StringUtil if (i > 0) { buf.append(sep); } - buf.append(toString(iter.next())); + toString(buf, iter.next(), openBox, closeBox); } buf.append(closeBox); @@ -549,7 +549,7 @@ public class StringUtil if (i > 0) { buf.append(sep); } - buf.append(toString(enm.nextElement())); + toString(buf, enm.nextElement(), openBox, closeBox); } buf.append(closeBox);