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
This commit is contained in:
Ray Greenwell
2010-04-13 21:00:52 +00:00
parent 6fe5ae9238
commit 406344529a
@@ -685,7 +685,8 @@ public class DObject
*/
public List<Object> getLocals ()
{
return ImmutableList.of(_locattrs);
return ImmutableList.copyOf(_locattrs);
// return Collections.unmodifiableList(Arrays.asList(_locattrs));
}
/**