aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com
diff options
context:
space:
mode:
authorrnveach <rveach02@gmail.com>2017-02-07 18:32:27 -0500
committerRoman Ivanov <romani@users.noreply.github.com>2017-02-08 14:37:50 -0800
commit8c0e0d0035b8061ceb0e75dc743c8dacf4d2e4fa (patch)
tree0116c93e4fac5f7f9c06c98337425d8e4cf55a36 /src/test/resources/com
parenta52c7a7a8ae8500a46bd998a1782e96dc481325d (diff)
downloadcheckstyle-8c0e0d0035b8061ceb0e75dc743c8dacf4d2e4fa.tar.gz
Issue #3803: fixed catch indentation wrapping
Diffstat (limited to 'src/test/resources/com')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java8
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java24
2 files changed, 32 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
index 0f4e6da47..51c617f50 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
@@ -83,6 +83,14 @@ public class InputInvalidTryIndent { //indent:0 exp:0
{ //indent:8 exp:8
} //indent:8 exp:8
+try { //indent:0 exp:8 warn
+} catch (NullPointerException //indent:0 exp:8 warn
+| IllegalArgumentException t) { //indent:0 exp:12 warn
+} //indent:0 exp:8 warn
+try { //indent:0 exp:8 warn
+} catch (NullPointerException | //indent:0 exp:8 warn
+IllegalArgumentException t) { //indent:0 exp:12 warn
+} //indent:0 exp:8 warn
} //indent:4 exp:4
} //indent:0 exp:0
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
index 959fb07bf..fac8af882 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
@@ -82,7 +82,31 @@ public class InputValidTryIndent { //indent:0 exp:0
{ //indent:8 exp:8
} //indent:8 exp:8
+ try //indent:8 exp:8
+ { //indent:8 exp:8
+ } //indent:8 exp:8
+ catch (NullPointerException | IllegalArgumentException t) //indent:8 exp:8
+ { //indent:8 exp:8
+ System.identityHashCode("err"); //indent:12 exp:12
+ } //indent:8 exp:8
+ try //indent:8 exp:8
+ { //indent:8 exp:8
+ } //indent:8 exp:8
+ catch (NullPointerException //indent:8 exp:8
+ | IllegalArgumentException t) //indent:12 exp:12
+ { //indent:8 exp:8
+ System.identityHashCode("err"); //indent:12 exp:12
+ } //indent:8 exp:8
+
+ try //indent:8 exp:8
+ { //indent:8 exp:8
+ } //indent:8 exp:8
+ catch (NullPointerException | //indent:8 exp:8
+ IllegalArgumentException t) //indent:12 exp:12
+ { //indent:8 exp:8
+ System.identityHashCode("err"); //indent:12 exp:12
+ } //indent:8 exp:8
} //indent:4 exp:4
} //indent:0 exp:0