1 package org.checkstyle.suppressionxpathfilter.avoidnestedblocks; 2 3 public class InputXpathAvoidNestedBlocksBreakOutside { 4 int s(int a) { 5 int x; 6 int y; 7 switch (a) { 8 case 0: { // warn: break outside block 9 x = 2; 10 y = -2; 11 } 12 break; 13 default: 14 x = 3; 15 y = -3; 16 } 17 return x + y; 18 } 19 }