1 /* 2 FallThrough 3 checkLastCaseGroup = true 4 reliefPattern = (default)falls?[ -]?thr(u|ough) 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.coding.fallthrough; 10 11 public class InputFallThrough8 { 12 void methodLastLine(int i) { 13 while (true) { 14 switch (i) { 15 case 0: 16 i++; 17 /* block */ // comment 18 // fall thru 19 case 1: 20 i++; 21 break; 22 case 2: 23 i++; 24 /* comment */ /* fall thru */ /* comment */ 25 case 3: 26 i--; 27 break; 28 } 29 } 30 } 31 32 void testLastCase(int i) { 33 switch (i) { 34 case 0: 35 i++; 36 /* comment */ /* fall thru */ /* comment */ 37 } 38 } 39 40 void testLastCase2(int i) { 41 switch (i) { 42 case 0: 43 i++; 44 /* comment */ /* comment */ 45 /* fall thru */ 46 } 47 } 48 }