Handle Collection instances in listToString().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1001 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-12-29 01:28:45 +00:00
parent 9432827628
commit c91b6c6482
@@ -1,5 +1,5 @@
//
// $Id: StringUtil.java,v 1.48 2002/12/02 22:59:26 mdb Exp $
// $Id: StringUtil.java,v 1.49 2002/12/29 01:28:45 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -383,6 +383,9 @@ public class StringUtil
}
buf.append(closeBox);
} else if (val instanceof Collection) {
listToString(buf, ((Collection)val).iterator(), formatter);
} else if (val instanceof Enumeration) {
buf.append(openBox);
Enumeration enum = (Enumeration)val;