1 /* 2 JavadocMethod 3 allowedAnnotations = (default)Override 4 validateThrows = (default)false 5 accessModifiers = (default)public, protected, package, private 6 allowMissingParamTags = (default)false 7 allowMissingReturnTag = (default)false 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 class InputJavadocMethodInheritDoc 16 { 17 /** {@inheritDoc} */ 18 InputJavadocMethodInheritDoc() // violation 'Invalid use of the '@inheritDoc' tag.' 19 { 20 } 21 22 /** {@inheritDoc} */ 23 private void privateMethod() // violation 'Invalid use of the '@inheritDoc' tag.' 24 { 25 } 26 27 /** {@inheritDoc} */ 28 void packageMethod() 29 { 30 } 31 32 /** {@inheritDoc} */ 33 protected void protectedMethod() 34 { 35 } 36 37 /** {@inheritDoc} */ 38 public void publicMethod() 39 { 40 } 41 42 /** {@inheritDoc} */ 43 private static void privateStaticMethod() // violation 'Invalid use of the '@inheritDoc' tag.' 44 { 45 } 46 47 /** {@inheritDoc} */ 48 static void packageStaticMethod() // violation 'Invalid use of the '@inheritDoc' tag.' 49 { 50 } 51 52 /** {@inheritDoc} */ 53 // violation below 'Invalid use of the '@inheritDoc' tag.' 54 protected static void protectedStaticMethod() 55 { 56 } 57 58 /** {@inheritDoc} */ 59 public static void publicStaticMethod() // violation 'Invalid use of the '@inheritDoc' tag.' 60 { 61 } 62 }