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:
@@ -685,7 +685,8 @@ public class DObject
|
|||||||
*/
|
*/
|
||||||
public List<Object> getLocals ()
|
public List<Object> getLocals ()
|
||||||
{
|
{
|
||||||
return ImmutableList.of(_locattrs);
|
return ImmutableList.copyOf(_locattrs);
|
||||||
|
// return Collections.unmodifiableList(Arrays.asList(_locattrs));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user