Fixed a bunch of deprecated bits and added some type-safety.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@305 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2007-10-17 21:55:59 +00:00
parent 07830b303f
commit 8e7997a061
12 changed files with 19 additions and 24 deletions
@@ -56,7 +56,7 @@ public class TestIconManager
frame.getContentPane().add(panel, BorderLayout.CENTER);
frame.pack();
SwingUtil.centerWindow(frame);
frame.show();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace(System.err);
@@ -52,17 +52,15 @@ public class BuildTestTileSetBundle
}
}
/** Dummy tileset id broker that makes up tileset ids (which are
* consistent in the course of execution of the application, but not
* between invocations). */
protected static class DummyTileSetIDBroker
extends HashMap
/** Dummy tileset id broker that makes up tileset ids (which are consistent in the course of
* execution of the application, but not between invocations). */
protected static class DummyTileSetIDBroker extends HashMap<String,Integer>
implements TileSetIDBroker
{
public int getTileSetID (String tileSetName)
throws PersistenceException
{
Integer id = (Integer)get(tileSetName);
Integer id = get(tileSetName);
if (id == null) {
id = new Integer(++_nextId);
put(tileSetName, id);
@@ -83,12 +81,7 @@ public class BuildTestTileSetBundle
protected int _nextId;
}
protected static final String CONFIG_PATH =
"rsrc/media/tile/bundle/tools/bundler-config.xml";
protected static final String BUNDLE_DESC_PATH =
"rsrc/media/tile/bundle/tools/bundle.xml";
protected static final String TARGET_PATH =
"rsrc/media/tile/bundle/tools/bundle.jar";
protected static final String CONFIG_PATH = "rsrc/media/tile/bundle/tools/bundler-config.xml";
protected static final String BUNDLE_DESC_PATH = "rsrc/media/tile/bundle/tools/bundle.xml";
protected static final String TARGET_PATH = "rsrc/media/tile/bundle/tools/bundle.jar";
}
@@ -89,7 +89,7 @@ public class TraceViz
{
_frame.pack();
SwingUtil.centerWindow(_frame);
_frame.show();
_frame.setVisible(true);
}
public static void main (String[] args)