Tidied up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5273 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -32,10 +32,11 @@ import java.security.PrivilegedExceptionAction;
|
||||
import java.security.PrivilegedActionException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import com.samskivert.util.ClassUtil;
|
||||
import com.samskivert.util.Predicate;
|
||||
|
||||
@@ -459,7 +460,7 @@ public class Streamer
|
||||
}
|
||||
|
||||
// reflect on all the object's fields and remove all marked with NotStreamable
|
||||
ArrayList<Field> fieldList = new ArrayList<Field>();
|
||||
List<Field> fieldList = Lists.newArrayList();
|
||||
ClassUtil.getFields(target, fieldList);
|
||||
_isStreamableFieldPred.filter(fieldList);
|
||||
_fields = fieldList.toArray(new Field[fieldList.size()]);
|
||||
|
||||
Reference in New Issue
Block a user