You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2026/07/15 17:50:00 UTC

[jira] [Created] (NIFI-16118) Add Checkstyle rules to prevent unnecessary semicolons in Enums and try with resources

Daniel Stieglitz created NIFI-16118:
---------------------------------------

             Summary: Add Checkstyle rules to prevent unnecessary semicolons in Enums and try with resources
                 Key: NIFI-16118
                 URL: https://issues.apache.org/jira/browse/NIFI-16118
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz
            Assignee: Daniel Stieglitz


In NIFI-16111, unnecessary semicolons were removed from the end of enum declarations and from the last statement in try with resources. Checkstyle has rules UnnecessarySemicolonInEnumeration and UnnecessarySemicolonInTryWithResources to ensure these semicolons are not introduced. Although UnnecessarySemicolonInTryWithResources had already been added to the code base, by default the rule does not enforce the use of semicolon at the end of a multi-line try with  resources. Hence it is necessary to override this behavior to ensure semicolons are not used at the end of the try with resources .



--
This message was sent by Atlassian Jira
(v8.20.10#820010)