View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="JavadocContentLocation"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadoccontentlocation;
10  
11  // xdoc section -- start
12  class Example1 {
13  
14    // violation below 'Javadoc content should start from the next line.'
15    /** This comment causes a violation because it starts from the first line
16     * and spans several lines.
17     */
18    private int field1;
19  
20    /**
21     * This comment is OK because it starts from the second line.
22     */
23    private int field12;
24  
25    /** This comment is OK because it is on the single-line. */
26    private int field3;
27  
28  }
29  // xdoc section -- end