Use weaker collection types
This commit is contained in:
@@ -175,7 +175,7 @@ public class GridNode implements IGridNode, IPathItem
|
||||
gcv.visitConnection( nextConn.poll() );
|
||||
}
|
||||
|
||||
LinkedList<GridNode> thisRun = nextRun;
|
||||
Iterable<GridNode> thisRun = nextRun;
|
||||
nextRun = new LinkedList<GridNode>();
|
||||
|
||||
for( GridNode n : thisRun )
|
||||
@@ -188,7 +188,7 @@ public class GridNode implements IGridNode, IPathItem
|
||||
{
|
||||
while( !nextRun.isEmpty() )
|
||||
{
|
||||
LinkedList<GridNode> thisRun = nextRun;
|
||||
Iterable<GridNode> thisRun = nextRun;
|
||||
nextRun = new LinkedList<GridNode>();
|
||||
|
||||
for( GridNode n : thisRun )
|
||||
|
||||
Reference in New Issue
Block a user