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