From 6add32eb44cf4a9e3228c74f79742ade424f08b1 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 21 Nov 2015 17:03:38 +0100 Subject: Use Interface instead of implementation --- src/ch/epfl/maze/physical/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ch/epfl/maze/physical/World.java') diff --git a/src/ch/epfl/maze/physical/World.java b/src/ch/epfl/maze/physical/World.java index 7e89fb5..f13b2b1 100644 --- a/src/ch/epfl/maze/physical/World.java +++ b/src/ch/epfl/maze/physical/World.java @@ -131,7 +131,7 @@ public abstract class World { */ public final Direction[] getChoices(Vector2D position) { - ArrayList choices = new ArrayList<>(); + List choices = new ArrayList<>(); for (Direction dir : Direction.POSSIBLE_DIRECTIONS) if (this.isFree(position.addDirectionTo(dir))) choices.add(dir); -- cgit v1.2.3