1 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 13 public class InputValidTryIndent { 14 15 16 public InputValidTryIndent() { 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 } 58 catch (Throwable t) { 59 System.out.println("err"); 60 } 61 finally { 62 } 63 64 try 65 { 66 System.out.println("try"); 67 } 68 catch (Exception t) 69 { 70 System.out.println("err"); 71 System.out.println("err"); 72 } 73 catch (Throwable t) 74 { 75 System.out.println("err"); 76 } 77 finally 78 { 79 } 80 81 82 } 83 84 } 85 | Popular Tags |