From 596144691b8d120bf976f5b25601c73b4c72d604 Mon Sep 17 00:00:00 2001 From: mdb Date: Wed, 13 Nov 2002 08:45:51 +0000 Subject: [PATCH] Formats collections using the iterator formatter. git-svn-id: https://samskivert.googlecode.com/svn/trunk@935 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/util/StringUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/StringUtil.java b/projects/samskivert/src/java/com/samskivert/util/StringUtil.java index 259b5dbb..fea8087b 100644 --- a/projects/samskivert/src/java/com/samskivert/util/StringUtil.java +++ b/projects/samskivert/src/java/com/samskivert/util/StringUtil.java @@ -1,5 +1,5 @@ // -// $Id: StringUtil.java,v 1.43 2002/11/06 01:39:24 mdb Exp $ +// $Id: StringUtil.java,v 1.44 2002/11/13 08:45:51 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -263,6 +263,9 @@ public class StringUtil } buf.append(closeBox); + } else if (val instanceof Collection) { + toString(buf, ((Collection)val).iterator(), openBox, closeBox); + } else if (val instanceof Enumeration) { buf.append(openBox); Enumeration enum = (Enumeration)val;