View Javadoc
1   package org.checkstyle.suppressionxpathfilter.descendanttoken;
2   
3   public class InputXpathDescendantTokenSwitchTooManyCases {
4   
5       void testMethod1() {
6           int x = 1;
7           Runnable switchLogic = () -> {
8               switch(x) { // warn
9                   case 1:
10                      System.out.println("hi");
11                      break;
12                  case 2:
13                      System.out.println("hello");
14                      break;
15              }
16          };
17          switchLogic.run();
18      }
19  }
20