void () { doTest(""" class X { void x(E e) { switch (e) { case A,B: System.out.println(e); /*'default' branch is unnecessary*/default/*_*//**/: System.out.println(); } } } """); checkQuickFix("Remove 'default' branch", """ class X { void x(E e) { switch (e) { case A,B: System.out.println(e); System.out.println(); } } } """); }