formatting and commenting.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5363 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-09-09 23:58:12 +00:00
parent b4af7a0250
commit 0809963ee9
+6 -2
View File
@@ -347,9 +347,11 @@ public class StringUtil
/**
* Return a string containing all the public fields of the object
*
* @param fieldNames the names of fields to print, or null to print all.
*/
public static function fieldsToString (
buf :StringBuilder, obj :Object, fieldNames :Array=null) :void
buf :StringBuilder, obj :Object, fieldNames :Array = null) :void
{
if (fieldNames == null) {
fieldNames = Environment.enumerateFields(obj);
@@ -366,8 +368,10 @@ public class StringUtil
/**
* Return a pretty basic toString of the supplied Object.
*
* @param fieldNames the names of fields to print, or null to print all.
*/
public static function simpleToString (obj :Object, fieldNames :Array=null) :String
public static function simpleToString (obj :Object, fieldNames :Array = null) :String
{
var buf :StringBuilder = new StringBuilder("[");
buf.append(ClassUtil.tinyClassName(obj));