Class OverloadMethodsDeclarationOrderCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class OverloadMethodsDeclarationOrderCheck
    extends AbstractCheck

    Checks that overload methods are grouped together. Example:

     
     public void foo(int i) {}
     public void foo(String s) {}
     public void notFoo() {} // Have to be after foo(int i, String s)
     public void foo(int i, String s) {}
     
     

    An example of how to configure the check is:

     <module name="OverloadMethodsDeclarationOrder"/>
     
    Author:
    maxvetrenko