fapifta opened a new pull request #2521:
URL: https://github.com/apache/ozone/pull/2521


   ## What changes were proposed in this pull request?
   
   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 PR is to loosen this rule, and allow nested blocks in switch statements.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5600
   
   ## How was this patch tested?
   Added a random test code with a switch case with blocks, and ran checkstyle, 
then removed the random code block.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to