Code hygiene. Not as pedantic as I'd like, but I couldn't resist the huge time
saver that is Eclipse's "Infer generic types" which leaves HashMap and ArrayList as the declared type where I would normally prefer to change those to Map and List and use Maps and Lists to instantiate them. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@593 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
package com.threerings.media;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.swing.Icon;
|
||||
@@ -110,7 +111,7 @@ public class IconManager
|
||||
{
|
||||
try {
|
||||
// see if the tileset is already loaded
|
||||
TileSet set = (TileSet)_icons.get(iconSet);
|
||||
TileSet set = _icons.get(iconSet);
|
||||
|
||||
// load it up if not
|
||||
if (set == null) {
|
||||
@@ -166,7 +167,7 @@ public class IconManager
|
||||
protected String _rsrcSet;
|
||||
|
||||
/** A cache of our icon tilesets. */
|
||||
protected LRUHashMap _icons = new LRUHashMap(ICON_CACHE_SIZE);
|
||||
protected Map<String, TileSet> _icons = new LRUHashMap<String, TileSet>(ICON_CACHE_SIZE);
|
||||
|
||||
/** The suffix we append to an icon set name to obtain the tileset
|
||||
* image path configuration parameter. */
|
||||
|
||||
Reference in New Issue
Block a user