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

This commit is contained in:
Masatake Iwasaki 2021-09-08 13:55:48 +09:00 committed by GitHub
parent 5a306955a4
commit e183ec8998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,9 @@
<!-- Checks for blocks. You know, those {}'s --> <!-- Checks for blocks. You know, those {}'s -->
<!-- See http://checkstyle.sf.net/config_blocks.html --> <!-- 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="EmptyBlock"/>
<module name="LeftCurly"/> <module name="LeftCurly"/>
<module name="NeedBraces"/> <module name="NeedBraces"/>