View Javadoc
1   /*
2   DescendantToken
3   tokens = LITERAL_SWITCH
4   maximumDepth = 2
5   minimumNumber = 1
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.descendanttoken;
10  
11  public class InputDescendantTokenTestLimitedToken {
12  }
13  
14  class Test {
15      public static void main(String[] args) {
16          int x = 1;
17          switch (x) {
18              case 1:
19                  x--;
20                  break;
21              default:
22                  x++;
23                  break;
24          }
25  
26          int y = 1;
27          switch (y) {
28              case 1:
29                  y++;
30                  break;
31          }
32      }
33  }