1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="CommentsIndentation"/> 5 </module> 6 </module> 7 */ 8 package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation; 9 10 // xdoc section -- start 11 public class Example8 { 12 public void foo42() { 13 int a = 5; 14 if (a == 5) { 15 int b; 16 // it is OK 17 } else if (a ==6) {} 18 } 19 20 public void foo43() { 21 // violation 3 lines below 'Comment has incorrect indentation level 5' 22 try { 23 int a; 24 // It is not okay 25 } catch (Exception e) { } 26 } 27 } 28 // xdoc section -- end