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