Class EmptyForInitializerPadCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class EmptyForInitializerPadCheck
    extends AbstractCheck

    Checks the padding of an empty for initializer; that is whether a space is required at an empty for initializer, or such spaces are forbidden. No check occurs if there is a line wrap at the initializer, as in

    for (
          ; i < j; i++, j--)
       

    The policy to verify is specified using the PadOption class and defaults to PadOption.NOSPACE.

    An example of how to configure the check is:

     <module name="EmptyForInitializerPad"/>
     
    Author:
    lkuehne