com.puppycrawl.tools.checkstyle.checks.design
public final class InterfaceIsTypeCheck extends Check
An interface should describe a type, it is therefore inappropriate to define an interface that does not contain any methods but only constants.
The check can be configured to also disallow marker interfaces like
java.io.Serializable
, that do not contain methods or
constants at all.
Version: $Revision: 1.6 $
Method Summary | |
---|---|
int[] | getDefaultTokens() {@inheritDoc} |
int[] | getRequiredTokens() {@inheritDoc} |
void | setAllowMarkerInterfaces(boolean aFlag)
Controls whether marker interfaces like Serializable are allowed. |
void | visitToken(DetailAST aAST) {@inheritDoc} |
Parameters: aFlag whether to allow marker interfaces or not