From 27d06d156947abf8e929fb3f38657f70fb7679be Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 21 Jun 2011 19:33:06 +0000 Subject: [PATCH] One empty array is as good as another. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6662 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/main/java/com/threerings/presents/dobj/DObject.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/threerings/presents/dobj/DObject.java b/src/main/java/com/threerings/presents/dobj/DObject.java index 79a9549e1..9b45500bf 100644 --- a/src/main/java/com/threerings/presents/dobj/DObject.java +++ b/src/main/java/com/threerings/presents/dobj/DObject.java @@ -1093,12 +1093,9 @@ public class DObject /** Indicates whether we want to be destroyed when our last subscriber is removed. */ protected transient boolean _deathWish = false; - /** Any local attributes configured on this object or null. */ - protected transient Object[] _locattrs = NO_ATTRS; + /** Any local attributes configured on this object. */ + protected transient Object[] _locattrs = ArrayUtil.EMPTY_OBJECT; /** Maintains a mapping of sorted accessor arrays for each distributed object class. */ protected static Map, Accessor[]> _atable = Maps.newHashMap(); - - /** Simplifies code for objects that have no local attributes. */ - protected static final Object[] NO_ATTRS = {}; }