Skip to content

Commit e183ec8

Browse files
authored
HADOOP-17897. Allow nested blocks in switch case in checkstyle settings. (#3394)
1 parent 5a30695 commit e183ec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@
160160

161161
<!-- Checks for blocks. You know, those {}'s -->
162162
<!-- See http://checkstyle.sf.net/config_blocks.html -->
163-
<module name="AvoidNestedBlocks"/>
163+
<module name="AvoidNestedBlocks">
164+
<property name="allowInSwitchCase" value="true"/>
165+
</module>
164166
<module name="EmptyBlock"/>
165167
<module name="LeftCurly"/>
166168
<module name="NeedBraces"/>

0 commit comments

Comments
 (0)