This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new d01927335d6 NIFI-16118 Added Checkstyle rules to prevent unnecessary 
semicolons in Enums and try with resources (#11436)
d01927335d6 is described below

commit d01927335d65be8fe45154027f6ca692c1ffaedd
Author: dan-s1 <[email protected]>
AuthorDate: Wed Jul 15 16:53:24 2026 -0400

    NIFI-16118 Added Checkstyle rules to prevent unnecessary semicolons in 
Enums and try with resources (#11436)
    
    Signed-off-by: David Handermann <[email protected]>
---
 checkstyle.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/checkstyle.xml b/checkstyle.xml
index ee8f7845fdc..894fefd3099 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -125,7 +125,10 @@
         <module name="PatternVariableName"/>
         <module name="RecordComponentName"/>
         <module name="IllegalIdentifierName"/>
-        <module name="UnnecessarySemicolonInTryWithResources"/>
+        <module name="UnnecessarySemicolonInEnumeration"/>
+        <module name="UnnecessarySemicolonInTryWithResources">
+            <property name="allowWhenNoBraceAfterSemicolon" value="false"/>
+        </module>
         <module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
         <module name="AvoidNoArgumentSuperConstructorCall"/>
         <module name="NeedBraces"/>

Reply via email to