1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.puppycrawl.tools.checkstyle.checks.descendanttoken;
17
18 public class InputDescendantTokenEmptyStatement
19 {
20 public InputDescendantTokenEmptyStatement()
21 {
22 ;
23 }
24
25 public void EmptyMethod()
26 {
27 ;
28 }
29
30 public void EmptyStatements(boolean cond)
31 {
32 for (;cond;);
33
34 for (;cond;)
35 {
36 ;
37 }
38
39 if (true);
40
41 if (true)
42 {
43 ;
44 }
45
46 if (cond)
47 {
48 int i;
49 }
50
51 else
52 {
53 ;
54 }
55
56 switch (1)
57 {
58 case 1 :
59 ;
60 default :
61 ;
62 }
63
64 while (cond);
65
66 while (cond)
67 {
68 ;
69 }
70
71 do;
72 while (cond);
73
74 do
75 {
76 ;
77 }
78 while (cond);
79
80 try
81 {
82 ;
83 }
84 catch (Exception ex)
85 {
86 ;
87 }
88 finally
89 {
90 ;
91 }
92 }
93 }