You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by iw...@apache.org on 2021/09/08 05:35:32 UTC
[hadoop] branch branch-3.3 updated: HADOOP-17897. Allow nested
blocks in switch case in checkstyle settings. (#3394)
This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 5926ccd HADOOP-17897. Allow nested blocks in switch case in checkstyle settings. (#3394)
5926ccd is described below
commit 5926ccde77d54b71b22759d92957325d2cca270f
Author: Masatake Iwasaki <iw...@apache.org>
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org