mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
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:
1 parent
9b74de3125
commit
e9e9d3276f
1 file changed
+9
-1
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user