01: package com.puppycrawl.tools.checkstyle;
02:
03: /**
04: * Input class for testing EmptyStatementCheck
05: * @author Rick Giles
06: * @version 5-May-2003
07: */
08: public class InputEmptyStatement {
09: public InputEmptyStatement() {
10: ;
11: }
12:
13: public void EmptyMethod() {
14: ;
15: }
16:
17: public void EmptyStatements(boolean cond) {
18: for (; cond;)
19: ;
20:
21: for (; cond;) {
22: ;
23: }
24:
25: if (true)
26: ;
27:
28: if (true) {
29: ;
30: }
31:
32: if (cond) {
33: int i;
34: }
35:
36: else {
37: ;
38: }
39:
40: switch (1) {
41: case 1:
42: ;
43: default:
44: ;
45: }
46:
47: while (cond)
48: ;
49:
50: while (cond) {
51: ;
52: }
53:
54: do
55: ; while (cond);
56:
57: do {
58: ;
59: } while (cond);
60:
61: try {
62: ;
63: } catch (Exception ex) {
64: ;
65: } finally {
66: ;
67: }
68: }
69: }
|