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:
@@ -177,7 +177,7 @@ public class SparseMisoSceneModel extends MisoSceneModel
|
||||
return -1;
|
||||
}
|
||||
|
||||
public void getAllObjects (ArrayList list) {
|
||||
public void getAllObjects (ArrayList<ObjectInfo> list) {
|
||||
for (ObjectInfo info : objectInfo) {
|
||||
list.add(info);
|
||||
}
|
||||
@@ -276,10 +276,10 @@ public class SparseMisoSceneModel extends MisoSceneModel
|
||||
* Adds all interesting {@link ObjectInfo} records in this scene to
|
||||
* the supplied list.
|
||||
*/
|
||||
public void getInterestingObjects (ArrayList list)
|
||||
public void getInterestingObjects (ArrayList<ObjectInfo> list)
|
||||
{
|
||||
for (Iterator iter = getSections(); iter.hasNext(); ) {
|
||||
Section sect = (Section)iter.next();
|
||||
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
|
||||
Section sect = iter.next();
|
||||
for (int oo = 0; oo < sect.objectInfo.length; oo++) {
|
||||
list.add(sect.objectInfo[oo]);
|
||||
}
|
||||
@@ -289,12 +289,10 @@ public class SparseMisoSceneModel extends MisoSceneModel
|
||||
/**
|
||||
* Adds all {@link ObjectInfo} records in this scene to the supplied list.
|
||||
*/
|
||||
public void getAllObjects (ArrayList list)
|
||||
public void getAllObjects (ArrayList<ObjectInfo> list)
|
||||
{
|
||||
for (Iterator iter = getSections(); iter.hasNext(); ) {
|
||||
Section sect = (Section)iter.next();
|
||||
|
||||
sect.getAllObjects(list);
|
||||
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
|
||||
iter.next().getAllObjects(list);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,8 +312,8 @@ public class SparseMisoSceneModel extends MisoSceneModel
|
||||
*/
|
||||
public void visitObjects (ObjectVisitor visitor, boolean interestingOnly)
|
||||
{
|
||||
for (Iterator iter = getSections(); iter.hasNext(); ) {
|
||||
Section sect = (Section)iter.next();
|
||||
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
|
||||
Section sect = iter.next();
|
||||
for (int oo = 0; oo < sect.objectInfo.length; oo++) {
|
||||
ObjectInfo oinfo = sect.objectInfo[oo];
|
||||
visitor.visit(oinfo);
|
||||
|
||||
Reference in New Issue
Block a user