A healthy splash of google-collections
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@822 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -32,6 +32,7 @@ import java.awt.Graphics2D;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import com.samskivert.util.IntIntMap;
|
||||
@@ -256,7 +257,7 @@ public class BundledComponentRepository
|
||||
// we have a hash of lists for mapping components by class/name
|
||||
ArrayList<CharacterComponent> comps = _classComps.get(cclass);
|
||||
if (comps == null) {
|
||||
comps = new ArrayList<CharacterComponent>();
|
||||
comps = Lists.newArrayList();
|
||||
_classComps.put(cclass, comps);
|
||||
}
|
||||
if (!comps.contains(component)) {
|
||||
|
||||
Reference in New Issue
Block a user