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