Class InterfaceIsTypeCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public final class InterfaceIsTypeCheck
    extends AbstractCheck
    Implements Bloch, Effective Java, Item 17 - Use Interfaces only to define types.

    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.

    Author:
    lkuehne