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 Example4 { 12 public void foo1() { 13 // comment 14 // block 15 // it is OK (we cannot clearly detect user intention of explanation target) 16 } 17 // violation 4 lines below 'Comment has incorrect indentation level 1' 18 public void foo2() { 19 // comment 20 // block 21 // It is not okay 22 } 23 } 24 // xdoc section -- end