diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.java index df40b49a0f2..e7405de58c6 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocVariableCheck.java @@ -19,15 +19,17 @@ package com.puppycrawl.tools.checkstyle.checks.javadoc; +import com.puppycrawl.tools.checkstyle.utils.CheckUtil; +import java.util.Arrays; import java.util.regex.Pattern; import com.puppycrawl.tools.checkstyle.StatelessCheck; import com.puppycrawl.tools.checkstyle.api.AbstractCheck; import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.FileContents; -import com.puppycrawl.tools.checkstyle.api.Scope; import com.puppycrawl.tools.checkstyle.api.TextBlock; import com.puppycrawl.tools.checkstyle.api.TokenTypes; +import com.puppycrawl.tools.checkstyle.checks.naming.AccessModifierOption; import com.puppycrawl.tools.checkstyle.utils.ScopeUtil; /** @@ -36,10 +38,10 @@ * *
null
public, protected, package, private
null
private
By default, this setting will report a violation if - there is no javadoc for any scope member. + there is no javadoc for a member with any access modifier.
- To configure the check for public
- scope:
+ To configure the check public
+ access modifier:
- To configure the check for members which are in private
, but not in
- protected
scope:
+ To configure the check for members which are in private
or
+ package
access modifier:
This setting will report a violation if there is no
- javadoc for private
member and
- ignores protected
member.
+ javadoc for private
or package
member.