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:
Michael Bayne
2008-08-01 15:56:37 +00:00
parent 60622c3590
commit 659f5bc5e2
64 changed files with 393 additions and 388 deletions
@@ -42,8 +42,7 @@ public class ClassEditor extends JPanel implements ChangeListener
/**
* Constructs a class editor.
*/
public ClassEditor (
BuilderModel model, ComponentClass cclass, List components)
public ClassEditor (BuilderModel model, ComponentClass cclass, List<Integer> components)
{
_model = model;
_components = components;
@@ -92,7 +91,7 @@ public class ClassEditor extends JPanel implements ChangeListener
*/
protected void setSelectedComponent (int idx)
{
int cid = ((Integer)_components.get(idx)).intValue();
int cid = _components.get(idx).intValue();
_model.setSelectedComponent(_cclass, cid);
}
@@ -100,7 +99,7 @@ public class ClassEditor extends JPanel implements ChangeListener
protected ComponentClass _cclass;
/** The components selectable via this editor. */
protected List _components;
protected List<Integer> _components;
/** The label denoting the currently selected component index. */
protected JLabel _clabel;