package bugIdeas;

public class Ideas_2009_01_14 {

    // static String getNameCorrect(int value) {
    // String result = "";
    // switch (value) {
    // case 0:
    // result = "zero";
    // break;
    // case 1:
    // result = "one";
    // break;
    // case 2:
    // result = "two";
    // break;
    // case 3:
    // result = "three";
    // break;
    // case 4:
    // result = "four";
    // break;
    // default:
    // throw new IllegalArgumentException("Illegal agrument: " + value);
    //
    // }
    // return "Answer is " + result;
    // }
    static String getNameBroken(int value) {
        String result = "";
        switch (value) {
        case 0:
            result = "zero";
            break;
        case 1:
            result = "one";
            break;
        case 2:
            result = "two";
            break;
        case 3:
            result = "three";
            break;
        case 4:
            result = "four";
        default:
            throw new IllegalArgumentException("Illegal agrument: " + value);

        }
        return "Answer is " + result;
    }

    public static void main(String args[]) {
        System.out.printf("%d\n", 100.0);
    }
}

@@ -16,555 +16,166 @@
 s;%0A%0A
-public class Ideas_2009_01_14 %7B%0A%0A    // static String getNameCorrect(int value) %7B%0A    // String result = %22%22;%0A    // switch (value) %7B%0A    // case 0:%0A    // result = %22zero%22;%0A    // break;%0A    // case 1:%0A    // result = %22one%22;%0A    // break;%0A    // case 2:%0A    // result = %22two%22;%0A    // break;%0A    //
+import edu.umd.cs.findbugs.annotations.ExpectWarning;%0Aimport edu.umd.cs.findbugs.annotations.NoWarning;%0A%0Apublic
  c
+l
 as
-e 3:%0A    // result = %22three%22;%0A    // break;%0A    // case 4:%0A    // result = %22four%22;%0A    // break;%0A    // default:%0A    // throw new IllegalArgumentException(%22Illegal agrument: %22 + value);%0A    //%0A    // %7D%0A    // return %22Answer is %22 + result;%0A    // %7D
+s Ideas_2009_01_14 %7B%0A%0A    @NoWarning(%22SF%22)
 %0A   
@@ -200,14 +200,15 @@
 Name
-Broken
+Correct
 (int
@@ -570,16 +570,35 @@
 %22four%22;%0A
+            break;%0A
         
@@ -740,16 +740,729 @@
 %0A    %7D%0A%0A
+    @ExpectWarning(%22SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW%22)%0A    @NoWarning(%22SF_SWITCH_NO_DEFAULT%22)%0A    static String getNameBroken(int value) %7B%0A        String result = %22%22;%0A        switch (value) %7B%0A        case 0:%0A            result = %22zero%22;%0A            break;%0A        case 1:%0A            result = %22one%22;%0A            break;%0A        case 2:%0A            result = %22two%22;%0A            break;%0A        case 3:%0A            result = %22three%22;%0A            break;%0A        case 4:%0A            result = %22four%22;%0A        default:%0A            throw new IllegalArgumentException(%22Illegal argument: %22 + value);%0A%0A        %7D%0A        return %22Answer is %22 + result;%0A    %7D%0A%0A    @ExpectWarning(%22VA_FORMAT_STRING_BAD_CONVERSION%22)%0A
     publ
@@ -1531,9 +1531,9 @@
 (%22%25d
-%5C
+%25
 n%22, 

Add annotations to document some changes between 2.0.1 and 2.0.2