KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputEmptyStatement


1 package com.puppycrawl.tools.checkstyle;
2
3 /**
4  * Input class for testing EmptyStatementCheck
5  * @author Rick Giles
6  * @version 5-May-2003
7  */

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