Class TypecastParenPadCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class TypecastParenPadCheck
    extends AbstractParenPadCheck
    Checks the policy on 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.
    • Property option - Specify policy on how to pad parentheses. Type is com.puppycrawl.tools.checkstyle.checks.whitespace.PadOption. Default value is nospace.

    Parent is com.puppycrawl.tools.checkstyle.TreeWalker

    Violation Message Keys:

    • ws.followed
    • ws.notFollowed
    • ws.notPreceded
    • ws.preceded
    Since:
    3.2