aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java
new file mode 100644
index 000000000..fecd4b491
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameterName.java
@@ -0,0 +1,50 @@
+package com.puppycrawl.tools.checkstyle.checks.naming;
+
+public class InputCatchParameterName {
+ {
+ try {
+ } catch (Exception e) {
+ }
+ try {
+ } catch (Exception ex) {
+ }
+ try {
+ } catch (Error | Exception err) {
+ }
+ try {
+ } catch (Exception exception) {
+ }
+ try {
+ } catch (Exception exception1) {
+ }
+ try {
+ } catch (Exception noWorries) {
+ }
+ try {
+ } catch (Throwable t) {
+ }
+ try {
+ throw new InterruptedException("interruptedException");
+ } catch (InterruptedException ie) { // violation with default config
+ }
+ try {
+ } catch (Exception iException) { // violation with default config
+ }
+ try {
+ } catch (Exception ok) {
+ // appropriate to take no action here
+ }
+ try {
+ } catch (Exception e1) {
+ try {
+ } catch (Exception e2) {
+ }
+ }
+ try {
+ } catch (Throwable t1) {
+ try {
+ } catch (Throwable t2) {
+ }
+ }
+ }
+}