Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -330,8 +330,7 @@ public class GeoPathFinding extends PathFinding
neighbors.add(newNode);
}
}
final GeoNode[] result = new GeoNode[neighbors.size()];
return neighbors.toArray(result);
return neighbors.toArray(new GeoNode[neighbors.size()]);
}
// Private
@@ -410,9 +409,7 @@ public class GeoPathFinding extends PathFinding
return;
}
final byte rx = Byte.parseByte(parts[0]);
final byte ry = Byte.parseByte(parts[1]);
LoadPathNodeFile(rx, ry);
LoadPathNodeFile(Byte.parseByte(parts[0]), Byte.parseByte(parts[1]));
});
//@formatter:on
}