Added method getAcceptableTokens.

Rationale: user can configure only METHOD_DEF and CTOR_DEF tokens.
This commit is contained in:
Rick Giles 2002-12-17 20:48:30 +00:00
parent 9b84d05630
commit 2a29a7cb4c
1 changed files with 8 additions and 0 deletions

View File

@ -151,6 +151,14 @@ public class JavadocMethodCheck
TokenTypes.METHOD_DEF,
TokenTypes.CTOR_DEF};
}
/** @see com.puppycrawl.tools.checkstyle.api.Check */
public int[] getAcceptableTokens()
{
return new int[] {
TokenTypes.METHOD_DEF,
TokenTypes.CTOR_DEF};
}
/** @see com.puppycrawl.tools.checkstyle.api.Check */
public void beginTree()