[ 
https://issues.apache.org/jira/browse/NIFI-16118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096605#comment-18096605
 ] 

ASF subversion and git services commented on NIFI-16118:
--------------------------------------------------------

Commit d01927335d65be8fe45154027f6ca692c1ffaedd in nifi's branch 
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d01927335d6 ]

NIFI-16118 Added Checkstyle rules to prevent unnecessary semicolons in Enums 
and try with resources (#11436)

Signed-off-by: David Handermann <[email protected]>

> Add Checkstyle rules to prevent the use of 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
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to