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:
@@ -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
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -383,6 +383,9 @@ public class StringUtil
|
|||||||
}
|
}
|
||||||
buf.append(closeBox);
|
buf.append(closeBox);
|
||||||
|
|
||||||
|
} else if (val instanceof Collection) {
|
||||||
|
listToString(buf, ((Collection)val).iterator(), formatter);
|
||||||
|
|
||||||
} else if (val instanceof Enumeration) {
|
} else if (val instanceof Enumeration) {
|
||||||
buf.append(openBox);
|
buf.append(openBox);
|
||||||
Enumeration enum = (Enumeration)val;
|
Enumeration enum = (Enumeration)val;
|
||||||
|
|||||||
Reference in New Issue
Block a user