refactor(test): for loop
This commit is contained in:
parent
5c248f26dc
commit
0ad795a8c4
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@ public class DijkstraAlgorithmTest {
|
||||||
public static void init() {
|
public static void init() {
|
||||||
try {
|
try {
|
||||||
// Create the map
|
// Create the map
|
||||||
for (int j = 0 ; j < Maps.size() ; j++) {
|
for (String mapName : Maps) {
|
||||||
final String mapName = Maps.get(j);
|
|
||||||
// Create a graph reader
|
// Create a graph reader
|
||||||
final GraphReader reader = new BinaryGraphReader(
|
final GraphReader reader = new BinaryGraphReader(
|
||||||
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));
|
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));
|
||||||
|
|
Loading…
Reference in a new issue