1 /*
2 FallThrough
3 checkLastCaseGroup = (default)false
4 reliefPattern = (default)falls?[ -]?thr(u|ough)
5
6 */
7
8 package com.puppycrawl.tools.checkstyle.checks.coding.fallthrough;
9
10 public class InputFallThroughWeird {
11 void foo(int i){
12 switch(i) {
13 case 1:
14 int fallthru = 2; // some comment
15 case 2: // violation 'Fall\ through from previous branch of the switch statement.'
16 break;
17 case 3:
18 int c = 2; // fall thru
19 case 4: // should be ok
20 break;
21 case 5:
22 String x = "x"; // fall thru
23 case 6: // should be ok
24 default:
25 }
26 }
27 }