@@ -0,0 +1,514 @@
+package sfBugs;%0A%0Aimport edu.umd.cs.findbugs.annotations.NoWarning;%0A%0Apublic class Bug3498829 %7B%0A    %0A    static enum Color %7BRED, YELLOW, GREEN %7D;%0A    %0A    @NoWarning(%22SF_SWITCH_NO_DEFAULT%22)%0A    public static  int getValue(Color c) %7B%0A        %0A        int result = 0;%0A        switch(c) %7B%0A        case RED:%0A            result = 1;%0A            break;%0A        case YELLOW:%0A            result = 2;%0A            break;%0A        case GREEN:%0A            result = 3;%0A            break;%0A        %7D%0A        return result;%0A    %7D%0A%0A%7D%0A

add test case