From 6864a0fadf0ef8299d0ca32b9d29734678988d70 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 30 Mar 2014 14:43:47 -0700 Subject: [PATCH] Changed BreadthFirstSearch.getDirections() to return a Collection. --- .../sk89q/worldedit/function/visitor/BreadthFirstSearch.java | 2 +- .../com/sk89q/worldedit/function/visitor/DownwardVisitor.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java b/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java index 95f099a67..b034a834a 100644 --- a/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java +++ b/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java @@ -70,7 +70,7 @@ public abstract class BreadthFirstSearch implements Operation { * * @return the list of directions */ - protected List getDirections() { + protected Collection getDirections() { return directions; } diff --git a/src/main/java/com/sk89q/worldedit/function/visitor/DownwardVisitor.java b/src/main/java/com/sk89q/worldedit/function/visitor/DownwardVisitor.java index 16072b243..ce6d1018d 100644 --- a/src/main/java/com/sk89q/worldedit/function/visitor/DownwardVisitor.java +++ b/src/main/java/com/sk89q/worldedit/function/visitor/DownwardVisitor.java @@ -23,7 +23,7 @@ import com.sk89q.worldedit.Vector; import com.sk89q.worldedit.function.RegionFunction; import com.sk89q.worldedit.function.mask.Mask; -import java.util.List; +import java.util.Collection; import static com.google.common.base.Preconditions.checkNotNull; @@ -51,7 +51,7 @@ public class DownwardVisitor extends RecursiveVisitor { this.baseY = baseY; - List directions = getDirections(); + Collection directions = getDirections(); directions.clear(); directions.add(new Vector(1, 0, 0)); directions.add(new Vector(-1, 0, 0));