From 7f7b0b0daf22193d416cd6d9f91b0d3790e4b1af Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 31 Mar 2014 20:10:09 -0700 Subject: [PATCH] Changed BlockOptimizedHistory to use TupleArrayList and FastListIterator. --- .../history/changeset/BlockOptimizedHistory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/history/changeset/BlockOptimizedHistory.java b/src/main/java/com/sk89q/worldedit/history/changeset/BlockOptimizedHistory.java index 835818312..919b19b65 100644 --- a/src/main/java/com/sk89q/worldedit/history/changeset/BlockOptimizedHistory.java +++ b/src/main/java/com/sk89q/worldedit/history/changeset/BlockOptimizedHistory.java @@ -22,11 +22,10 @@ package com.sk89q.worldedit.history.changeset; import com.google.common.base.Function; import com.google.common.collect.Iterators; import com.sk89q.worldedit.BlockVector; -import com.sk89q.worldedit.DoubleArrayList; import com.sk89q.worldedit.blocks.BaseBlock; -import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.history.change.BlockChange; import com.sk89q.worldedit.history.change.Change; +import com.sk89q.worldedit.util.collection.TupleArrayList; import java.util.ArrayList; import java.util.Iterator; @@ -44,8 +43,8 @@ import static java.util.Map.Entry; */ public class BlockOptimizedHistory extends ArrayListHistory { - private final DoubleArrayList previous = new DoubleArrayList(true); - private final DoubleArrayList current = new DoubleArrayList(false); + private final TupleArrayList previous = new TupleArrayList(); + private final TupleArrayList current = new TupleArrayList(); @Override public void add(Change change) { @@ -94,4 +93,5 @@ public class BlockOptimizedHistory extends ArrayListHistory { } }; } + }