HADOOP-17897. Allow nested blocks in switch case in checkstyle settings. (#3394)

(cherry picked from commit e183ec8998)
This commit is contained in:
Masatake Iwasaki 2021-09-08 13:55:48 +09:00
parent 3b1c594355
commit 5926ccde77
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,9 @@
<!-- Checks for blocks. You know, those {}'s -->
<!-- See http://checkstyle.sf.net/config_blocks.html -->
<module name="AvoidNestedBlocks"/>
<module name="AvoidNestedBlocks">
<property name="allowInSwitchCase" value="true"/>
</module>
<module name="EmptyBlock"/>
<module name="LeftCurly"/>
<module name="NeedBraces"/>