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:
@@ -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("::", ".");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user