Skip to content

Commit 27a687d

Browse files
committed
adjust checkstyle to allow blocks in switch statements
1 parent 6400fb9 commit 27a687d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

checkstyle.xml

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

216216
<!-- Checks for blocks. You know, those {}'s -->
217217
<!-- See http://checkstyle.sf.net/config_blocks.html -->
218-
<module name="AvoidNestedBlocks"/>
218+
<module name="AvoidNestedBlocks">
219+
<property name="allowInSwitchCase" value="true"/>
220+
</module>
219221
<module name="EmptyBlock">
220222
<property name="option" value="text"/>
221223
</module>

0 commit comments

Comments
 (0)