From e9e9d3276fe442cab9df93fadc3930e38f2d17c5 Mon Sep 17 00:00:00 2001 From: Christoph Kutzinski Date: Sun, 14 Jul 2013 11:44:35 +0200 Subject: [PATCH] removed the noAnime() conversions, so we can rely on the compiler to warn us, if we forget a case here --- core/src/main/java/hudson/Functions.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 52fbfd19c4..0320f1b7c6 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -1329,15 +1329,23 @@ public class Functions { public static String toCCStatus(Item i) { if (i instanceof Job) { Job j = (Job) i; - switch (j.getIconColor().noAnime()) { + switch (j.getIconColor()) { case ABORTED: + case ABORTED_ANIME: case RED: + case RED_ANIME: case YELLOW: + case YELLOW_ANIME: return "Failure"; case BLUE: + case BLUE_ANIME: return "Success"; case DISABLED: + case DISABLED_ANIME: case GREY: + case GREY_ANIME: + case NOTBUILT: + case NOTBUILT_ANIME: return "Unknown"; } }