This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 34d443a HADOOP-17897. Allow nested blocks in switch case in
checkstyle settings. (#3394)
34d443a is described below
commit 34d443a2f063047df1a1e931629cc8da335ff5e1
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Wed Sep 8 13:55:48 2021 +0900
HADOOP-17897. Allow nested blocks in switch case in checkstyle settings.
(#3394)
(cherry picked from commit e183ec8998d0272884b73df7eb1a6da5adf1040a)
---
hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml
b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml
index 753735e..adffe4e 100644
--- a/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml
+++ b/hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml
@@ -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"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]