View Javadoc
1   /*
2   JavadocStyle
3   scope = (default)private
4   excludeScope = (default)null
5   checkFirstSentence = (default)true
6   endOfSentenceFormat = (default)([.?!][ \t\n\r\f<])|([.?!]$)
7   checkEmptyJavadoc = (default)false
8   checkHtml = (default)true
9   tokens = (default)ANNOTATION_DEF, ANNOTATION_FIELD_DEF, CLASS_DEF, CTOR_DEF, \
10           ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, METHOD_DEF, PACKAGE_DEF, \
11           VARIABLE_DEF, RECORD_DEF, COMPACT_CTOR_DEF
12  
13  
14  */
15  
16  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocstyle;
17  
18  public class InputJavadocStyleDefaultSettingsFive
19  {
20     /**
21      * {@return a string}
22      */
23      public String foo()
24      {
25          return "Hello, world";
26      }
27  
28     /**
29      *   This is the first sentence with leading and trailing spaces.   Second sentence.
30      */
31      public String foo2()
32      {
33          return "Hello, world";
34      }
35  
36     /**
37      * {@return the Java language {@linkplain Modifier modifiers} for
38      * the executable represented by this object}
39      */
40      public int foo3()
41      {
42          return 0;
43      }
44  
45     /**
46      * {@return {@code true} if this method is a bridge
47      * method; returns {@code false} otherwise}
48      */
49      public boolean foo4()
50      {
51          return true;
52      }
53  
54      /**
55       * {@return {@code true} if this object has been {@linkplain #init
56       * initialized}, {@code false} otherwise}
57       */
58       public boolean foo5()
59       {
60         return true;
61       }
62  }