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 16:52:00 UTC

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

     [ https://issues.apache.org/jira/browse/HDDS-5600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

István Fajth closed HDDS-5600.
------------------------------

> 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
>            Assignee: István Fajth
>            Priority: Major
>              Labels: pull-request-available
>
> 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