package sfBugs;

import edu.umd.cs.findbugs.annotations.DesireNoWarning;

public class Bug3062023 {
	private enum E {
		A, B, C, D
	}

	@DesireNoWarning("DB_DUPLICATE_SWITCH_CLAUSES")
	private void noWarning(E e) {
		switch (e) {
			case A:
				something(1);
				break;
			case B:
				//Nothing to report
				break;
			case C:
				something(2);
				break;
			case D:
				break;
			default:
				something(10);
				break;
		}
	}

	private void something(int i) {
	}
}

package sfBugs;

import edu.umd.cs.findbugs.annotations.DesireNoWarning;

public class Bug3062023 {
	private enum E {
		A, B, C, D
	}

	@DesireNoWarning("DB_DUPLICATE_SWITCH_CLAUSES")
	private void noWarning(E e) {
		switch (e) {
			case A:
				something();
				break;
			case B:
				//Nothing to report
				break;
			case C:
				something();
				break;
			case D:
				something();
				break;
			default:
				something();
				break;
		}
	}

	private void something() {
	}
}

--- 
+++ 
@@ -11,23 +11,22 @@
 	private void noWarning(E e) {
 		switch (e) {
 			case A:
-				something();
+				something(1);
 				break;
 			case B:
 				//Nothing to report
 				break;
 			case C:
-				something();
+				something(2);
 				break;
 			case D:
-				something();
 				break;
 			default:
-				something();
+				something(10);
 				break;
 		}
 	}
 
-	private void something() {
+	private void something(int i) {
 	}
 }
Update test case for 3062023 to reflect actual bug being reported

git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@12584 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
