Skip to content

Commit

Permalink
Fix #911
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 17, 2013
1 parent b075629 commit fe16b30
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -16,7 +16,6 @@
* Used to override World.loadedTile/EntityList.
* */
public abstract class EntityList<T> extends ArrayList<T> {
private static boolean warnedIterateTransform = false;
public final TickManager manager;
public final ConcurrentUnsafeIterableArrayList<T> innerList;

Expand Down Expand Up @@ -68,10 +67,6 @@ public boolean removeAll(Collection c) {
@Override
public Iterator<T> iterator() {
if (!Thread.holdsLock(this)) {
if (!warnedIterateTransform) {
Log.warning("Unsafe entity list iteration", new Throwable());
warnedIterateTransform = true;
}
return innerList.unsafeIterator();
}
return innerList.iterator();
Expand Down

0 comments on commit fe16b30

Please sign in to comment.