[Spatial Partition] (Fix) Issue #2544: Can not run App.java & some logs are wrong (#2545)

* [Spatial Partition] (Fix) Issue #2544

- ConcurrentModificationException
- Wrong log
- Log using formatting anchor

* [Spatial Partition] (Change) Hashtable to Map, (Remove) unused variable BUBBLE
This commit is contained in:
Tien Nguyen Minh
2023-08-20 14:28:05 +07:00
committed by GitHub
parent c769c73e91
commit 2154e777b6
6 changed files with 27 additions and 28 deletions
@@ -24,7 +24,7 @@
*/
package com.iluwatar.spatialpartition;
import java.util.Hashtable;
import java.util.Map;
/**
* This abstract class has 2 fields, one of which is a hashtable containing all objects that
@@ -35,7 +35,7 @@ import java.util.Hashtable;
public abstract class SpatialPartitionGeneric<T> {
Hashtable<Integer, T> playerPositions;
Map<Integer, T> playerPositions;
QuadTree quadTree;
/**