Issue #2451: deprecated AbstractIllegalMethodCheck

This commit is contained in:
rnveach 2015-11-06 14:46:44 -05:00 committed by Roman Ivanov
parent 3fe171ec8a
commit fbd3d53641
2 changed files with 4 additions and 0 deletions

View File

@ -1733,6 +1733,7 @@
<exclude>com/puppycrawl/tools/checkstyle/checks/AbstractFormatCheck.class</exclude>
<exclude>com/puppycrawl/tools/checkstyle/checks/AbstractDeclarationCollector*.class</exclude>
<exclude>com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalCheck.class</exclude>
<exclude>com/puppycrawl/tools/checkstyle/checks/coding/AbstractIllegalMethodCheck.class</exclude>
</excludes>
</instrumentation>
</configuration>

View File

@ -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;