1 package org.checkstyle.suppressionxpathfilter.missingswitchdefault; 2 3 public class InputXpathMissingSwitchDefaultNested { 4 public static void test2() { 5 int key = 2; 6 switch (key) { 7 case 1: 8 break; 9 case 2: 10 break; 11 default: 12 switch (key) { // warn 13 case 2: 14 break; 15 } 16 } 17 } 18 }