1 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 13 public class InputInvalidTryIndent { 14 15 16 public InputInvalidTryIndent() { 17 } 18 19 public void method() { 20 21 try { 22 } catch (Throwable 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 t) { 34 System.out.println("err"); 35 } finally { 36 } 37 38 try { 39 } catch (Exception t) { 40 System.out.println("err"); 41 } catch (Throwable t) { 42 System.out.println("err"); 43 } 44 45 try { 46 } catch (Exception t) { 47 } catch (Throwable t) { 48 } 49 50 51 try { 52 System.out.println("try"); 53 } 54 catch (Exception t) { 55 System.out.println("err"); 56 System.out.println("err"); 57 System.out.println("err"); 58 } 59 catch (Throwable t) { 60 System.out.println("err"); 61 } 62 finally { 63 } 64 65 try 66 { 67 System.out.println("try"); 68 } 69 catch (Exception t) 70 { 71 System.out.println("err"); 72 System.out.println("err"); 73 } 74 catch (Throwable t) 75 { 76 System.out.println("err"); 77 } 78 finally 79 { 80 } 81 82 83 } 84 } 85 | Popular Tags |