From b73e76d19b62b0b7485abc788a3062c3746a5be4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 5 Oct 2010 20:27:31 +0000 Subject: [PATCH] Let's use StringUtil.shortClassName() which handles null and also snips off the package, since that's generally TMI anyway. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6173 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/dobj/DObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/dobj/DObject.java b/src/java/com/threerings/presents/dobj/DObject.java index b9119ced9..413e70760 100644 --- a/src/java/com/threerings/presents/dobj/DObject.java +++ b/src/java/com/threerings/presents/dobj/DObject.java @@ -529,7 +529,7 @@ public class DObject } catch (Exception e) { String errmsg = "changeAttribute() failure [name=" + name + ", value=" + value + - ", vclass=" + value.getClass().getName() + "]."; + ", vclass=" + StringUtil.shortClassName(value) + "]."; throw new ObjectAccessException(errmsg, e); } } @@ -547,7 +547,7 @@ public class DObject } catch (Exception e) { String errmsg = "setAttribute() failure [name=" + name + ", value=" + value + - (value == null ? "" : ", vclass=" + value.getClass().getName()) + "]."; + ", vclass=" + StringUtil.shortClassName(value) + "]."; throw new ObjectAccessException(errmsg, e); } }