Fixed several dozen bugs as detected by FindBugs

This commit is contained in:
Obique PSWG
2015-10-10 23:36:16 -05:00
parent c89486185e
commit 5315185e7d
28 changed files with 190 additions and 70 deletions
@@ -29,6 +29,7 @@ package resources.objects.quadtree;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
public class QuadTree<V> {
@@ -337,6 +338,8 @@ public class QuadTree<V> {
@Override
public T next() {
if (!hasNext())
throw new NoSuchElementException("Reached the end of the iterator!");
T node = subnodes[x][y];
if (y + 1 < subnodes.length)
y++;