refactor: for -> while
This commit is contained in:
parent
027c2e7618
commit
2f9e303889
@ -14,8 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.oscim.utils.quadtree;
|
package org.oscim.utils.quadtree;
|
||||||
|
|
||||||
public abstract class QuadTreeIndex<T> {
|
public abstract class QuadTreeIndex<T> {
|
||||||
|
|
||||||
|
|
||||||
QuadTree<T> pool;
|
QuadTree<T> pool;
|
||||||
|
|
||||||
@ -152,7 +151,7 @@ public abstract class QuadTreeIndex<T> {
|
|||||||
QuadTree<T> cur = item;
|
QuadTree<T> cur = item;
|
||||||
QuadTree<T> next;
|
QuadTree<T> next;
|
||||||
|
|
||||||
for (; cur != root;) {
|
while (cur != root) {
|
||||||
if (cur == null)
|
if (cur == null)
|
||||||
throw new IllegalArgumentException("QuadTree.remove: item not in index");
|
throw new IllegalArgumentException("QuadTree.remove: item not in index");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user