Fixed shortClassName() to not display a leading '.'.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4341 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-08-23 21:27:14 +00:00
parent 1d37bcaa06
commit 1f204669c4
+1 -3
View File
@@ -15,9 +15,7 @@ public class ClassUtil
{
var s :String = getQualifiedClassName(obj);
var dex :int = s.lastIndexOf(".");
if (dex != -1) {
s = s.substring(dex);
}
s = s.substring(dex + 1); // works even if dex is -1
return s.replace("::", ".");
}