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 Example1 { 12 void testMethod() { 13 /* 14 * it is Ok 15 */ 16 boolean bool = true; 17 // violation below, 'Block comment has incorrect indentation level 6' 18 /* 19 * It is not okay 20 */ 21 double d = 3.14; 22 } 23 24 public void foo1() { 25 foo2(); 26 // it is OK 27 } 28 29 public void foo2() { 30 int i; 31 // It is not okay 32 } 33 // violation 2 lines above 'Comment has incorrect indentation level 8' 34 } 35 // xdoc section -- end