From 406344529acd7c2fa43bbbe29932a2cc37a05c2b Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 13 Apr 2010 21:00:52 +0000 Subject: [PATCH] Updated deprecated usage. Added alternate implementation in comments. One copies the array, the other creates two wrapper Lists. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6058 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/dobj/DObject.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/dobj/DObject.java b/src/java/com/threerings/presents/dobj/DObject.java index 189d8c79c..d4e0df2f7 100644 --- a/src/java/com/threerings/presents/dobj/DObject.java +++ b/src/java/com/threerings/presents/dobj/DObject.java @@ -685,7 +685,8 @@ public class DObject */ public List getLocals () { - return ImmutableList.of(_locattrs); + return ImmutableList.copyOf(_locattrs); + // return Collections.unmodifiableList(Arrays.asList(_locattrs)); } /**