Class UnnecessarySemicolonInTryWithResourcesCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public final class UnnecessarySemicolonInTryWithResourcesCheck
    extends AbstractCheck

    Checks if unnecessary semicolon is used in last resource declaration.

    • Property allowWhenNoBraceAfterSemicolon - Allow unnecessary semicolon if closing paren is not on the same line. Type is boolean. Default value is true.

    Parent is com.puppycrawl.tools.checkstyle.TreeWalker

    Violation Message Keys:

    • unnecessary.semicolon
    Since:
    8.22