Class AbstractClassNameCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public final class AbstractClassNameCheck
    extends AbstractCheck

    Ensures that the names of abstract classes conforming to some regular expression and check that abstract modifier exists.

    Rationale: Abstract classes are convenience base class implementations of interfaces, not types as such. As such they should be named to indicate this. Also if names of classes starts with 'Abstract' it's very convenient that they will have abstract modifier.

    Author:
    Simon Harris, Danil Lopatin