From fbd3d53641368f6bcacc7b8015d434625fda116b Mon Sep 17 00:00:00 2001 From: rnveach Date: Fri, 6 Nov 2015 14:46:44 -0500 Subject: [PATCH] Issue #2451: deprecated AbstractIllegalMethodCheck --- pom.xml | 1 + .../checkstyle/checks/coding/AbstractIllegalMethodCheck.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index dfc325fbd..4b0bd1a82 100644 --- a/pom.xml +++ b/pom.xml @@ -1733,6 +1733,7 @@ com/puppycrawl/tools/checkstyle/checks/AbstractFormatCheck.class com/puppycrawl/tools/checkstyle/checks/AbstractDeclarationCollector*.class com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalCheck.class + com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.class diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.java index 296b493ef..c70f9b615 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.java @@ -26,8 +26,11 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes; /** * Provide support for checking for a method with a specified name and no * arguments. + * @deprecated Checkstyle will not support abstract checks anymore. Use {@link Check} instead. * @author Oliver Burn + * @noinspection AbstractClassNeverImplemented */ +@Deprecated public abstract class AbstractIllegalMethodCheck extends Check { /** Name of method to disallow. */ private final String methodName;