From b5fbec62e228d9c05c266074f80ff2021279da16 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:23:07 +0100 Subject: [PATCH] Issue #9280: replace `Scope` with `AccessModifierOption` in JavadocVariableCheck --- .../checks/javadoc/JavadocVariableCheck.java | 137 ++++++++++-------- .../checks/javadoc/JavadocVariableCheck.xml | 13 +- .../javadoc/JavadocVariableCheckTest.java | 23 +-- src/xdocs/config_javadoc.xml | 59 ++------ 4 files changed, 105 insertions(+), 127 deletions(-) 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 487efa58bf0..0c05339593b 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,6 +19,7 @@ package com.puppycrawl.tools.checkstyle.checks.javadoc; +import java.util.Arrays; import java.util.regex.Pattern; import com.puppycrawl.tools.checkstyle.StatelessCheck; @@ -28,6 +29,7 @@ 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,15 +38,10 @@ *

*