1 /* 2 JavadocMethod 3 allowedAnnotations = (default)Override 4 validateThrows = (default)false 5 accessModifiers = public 6 allowMissingParamTags = (default)false 7 allowMissingReturnTag = true 8 tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF 9 10 11 */ 12 13 package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod; 14 15 public interface InputJavadocMethodDefaultAccessModifier { 16 /** Javadoc ok here. */ 17 void testNoViolation(); 18 19 class MyClass { 20 /** Missing parameter here. */ 21 public MyClass(Integer a) { // violation 'Expected @param tag for 'a'' 22 } 23 } 24 25 /** Missing parameter here, public method by default */ 26 int testViolationMissingParameter(int b); // violation 'Expected @param tag for 'b'' 27 28 /** 29 * Test method. 30 * 31 * @param c test parameter 32 */ 33 double testNoViolationParameterPresent(int c); 34 }