You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "István Fajth (Jira)" <ji...@apache.org> on 2021/08/10 12:03:00 UTC

[jira] [Created] (HDDS-5600) Allow nested blocks in switch case statements in checkstyle checks

István Fajth created HDDS-5600:
----------------------------------

             Summary: Allow nested blocks in switch case statements in checkstyle checks
                 Key: HDDS-5600
                 URL: https://issues.apache.org/jira/browse/HDDS-5600
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: István Fajth


In the checkstyle rules, we enable the module AvoidNestedBlocks.

This is a problem, if for example a variable scope needs to be created inside a switch case statement, where this rule gives a warning if a case defines a code block ("{}").

This JIRA is to loosen this rule, and allow nested blocks in switch statements.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org