KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * InputInvalidTryIndent.java
3  *
4  * Created on December 31, 2002, 7:18 PM
5  */

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

13 public class InputInvalidTryIndent {
14     
15     /** Creates a new instance of InputInvalidTryIndent */
16     public InputInvalidTryIndent() {
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           System.out.println("err");
58         }
59       catch (Throwable JavaDoc t) {
60             System.out.println("err");
61         }
62         finally {
63         }
64         
65         try
66           {
67             System.out.println("try");
68           }
69         catch (Exception JavaDoc t)
70       {
71             System.out.println("err");
72             System.out.println("err");
73           }
74         catch (Throwable JavaDoc t)
75         {
76           System.out.println("err");
77         }
78         finally
79         {
80         }
81         
82         
83     }
84 }
85
Popular Tags