From 6dd386878179854edc089ba8d12d56c5b88081c3 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 23 Nov 2015 10:28:51 +0100 Subject: Make Marking enum constants final --- src/ch/epfl/maze/util/Trail.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch/epfl/maze/util/Trail.java b/src/ch/epfl/maze/util/Trail.java index 351db8f..ed806c5 100644 --- a/src/ch/epfl/maze/util/Trail.java +++ b/src/ch/epfl/maze/util/Trail.java @@ -15,8 +15,8 @@ public class Trail { AVOID_MARKING, NO_GO_MARKING; - public static Marking DEFAULT = NO_MARKING; - public static Marking[] ALL = new Marking[]{NO_MARKING, AVOID_MARKING, NO_GO_MARKING}; + public static final Marking DEFAULT = NO_MARKING; + public static final Marking[] ALL = new Marking[]{NO_MARKING, AVOID_MARKING, NO_GO_MARKING}; /** * Returns the next Marking. -- cgit v1.2.3