Class TypecastParenPadCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class TypecastParenPadCheck
    extends AbstractParenPadCheck

    Checks the padding of parentheses for typecasts. That is whether a space is required after a left parenthesis and before a right parenthesis, or such spaces are forbidden.

    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="TypecastParenPad"/>
     

    An example of how to configure the check to require spaces for the parentheses of constructor, method, and super constructor invocations is:

     <module name="TypecastParenPad">
         <property name="option" value="space"/>
     </module>
     
    Author:
    Oliver Burn