KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > indentation > InputValidTryIndent


1 /*
2  * InputValidTryIndent.java
3  *
4  * Created on December 31, 2002, 6:56 PM
5  */

6
7 package com.puppycrawl.tools.checkstyle.indentation;
8
9 /**
10  *
11  * @author jrichard
12  */

13 public class InputValidTryIndent {
14     
15     /** Creates a new instance of InputValidTryIndent */
16     public InputValidTryIndent() {
17     }
18     
19     public void method() {
20         
21         try {
22         } catch (Throwable JavaDoc t) {
23             System.out.println("err");
24         }
25
26         try {
27             System.out.println("test");
28         } finally {
29             System.out.println("finally");
30         }
31
32         try {
33         } catch (Throwable JavaDoc t) {
34             System.out.println("err");
35         } finally {
36         }
37
38         try {
39         } catch (Exception JavaDoc t) {
40             System.out.println("err");
41         } catch (Throwable JavaDoc t) {
42             System.out.println("err");
43         }
44
45         try {
46         } catch (Exception JavaDoc t) {
47         } catch (Throwable JavaDoc t) {
48         }
49
50         
51         try {
52             System.out.println("try");
53         }
54         catch (Exception JavaDoc t) {
55             System.out.println("err");
56             System.out.println("err");
57         }
58         catch (Throwable JavaDoc t) {
59             System.out.println("err");
60         }
61         finally {
62         }
63         
64         try
65         {
66             System.out.println("try");
67         }
68         catch (Exception JavaDoc t)
69         {
70             System.out.println("err");
71             System.out.println("err");
72         }
73         catch (Throwable JavaDoc t)
74         {
75             System.out.println("err");
76         }
77         finally
78         {
79         }
80         
81         
82     }
83     
84 }
85
Popular Tags