mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-13 03:13:09 -04:00
Fixed several dozen bugs as detected by FindBugs
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user