Class FinalClassCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class FinalClassCheck
    extends AbstractCheck

    Checks that class which has only private ctors is declared as final. Doesn't check for classes nested in interfaces or annotations, as they are always final there.

    An example of how to configure the check is:

     <module name="FinalClass"/>
     
    Author:
    o_sukhodolsky