1 /* 2 JavadocMethod 3 allowInlineReturn = true 4 allowedAnnotations = (default)Override 5 validateThrows = (default)false 6 accessModifiers = (default)public, protected, package, private 7 allowMissingParamTags = (default)false 8 allowMissingReturnTag = (default)false 9 tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF 10 11 12 */ 13 14 package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod; 15 16 public class InputJavadocMethodAllowInlineReturn { 17 18 /** 19 * {@return the foo} 20 */ 21 public int getFoo() { return 0; } 22 23 /** 24 * Returns the bar 25 * @return the bar 26 */ 27 public int getBar() { return 0; } 28 29 /** 30 * Returns the fiz 31 */ 32 public int getFiz() { return 0; } 33 // violation above, '@return tag should be present and have description.' 34 35 /** 36 * Returns the baz 37 * @see "getFoo" 38 */ 39 public int getBaz() { return 0; } 40 // violation above, '@return tag should be present and have description.' 41 }