removed the noAnime() conversions, so we can rely on the compiler to warn us, if we forget a case here

This commit is contained in:
Christoph Kutzinski committed 2013-07-14 11:44:35 +02:00
1 parent 9b74de3125
commit e9e9d3276f
1 file changed
+9 -1
+9 -1
View File
@@ -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";
}
}