1 package org.checkstyle.suppressionxpathfilter.descendanttoken; 2 3 public class InputXpathDescendantTokenNestedSwitch { 4 5 void testMethod1() { 6 int x = 1; 7 int y = 2; 8 switch (x) { 9 case 1: 10 System.out.println("xyz"); 11 break; 12 case 2: // warn 13 switch (y) { 14 case 1: 15 System.out.println("nested"); 16 break; 17 } 18 break; 19 } 20 } 21 }