From 0809963ee9dc786bffe747dcb4daf21d156cbc49 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 9 Sep 2008 23:58:12 +0000 Subject: [PATCH] formatting and commenting. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5363 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/StringUtil.as | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/StringUtil.as b/src/as/com/threerings/util/StringUtil.as index 747250e44..1ccb82e7a 100644 --- a/src/as/com/threerings/util/StringUtil.as +++ b/src/as/com/threerings/util/StringUtil.as @@ -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));