diff options
author | Roman Ivanov <ivanov-jr@mail.ru> | 2015-11-18 05:53:18 -0800 |
---|---|---|
committer | Roman Ivanov <ivanov-jr@mail.ru> | 2015-11-18 05:53:18 -0800 |
commit | c324b05dfdeb0ce41af355db95b7da3149f8f98a (patch) | |
tree | ce86735533fa7a12cbaf4d669830849d189b5567 /src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming | |
parent | 0975fb750b3d6775d514c8c096786fe6f7a6c272 (diff) | |
download | checkstyle-c324b05dfdeb0ce41af355db95b7da3149f8f98a.tar.gz |
Revert "Issue #2290: Add 'skipCatchParameter' to skip catch parameter from validation"
This reverts commit 176301250bfd2063f405fed4a960064e0a3e0230.
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming')
3 files changed, 2 insertions, 77 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameter.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameter.java deleted file mode 100644 index 47388bef2..000000000 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputCatchParameter.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.puppycrawl.tools.checkstyle.checks.naming; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.sql.SQLException; - -public class InputCatchParameter { - - void foo1() { - try { - - } - catch (Exception ex) { - - } - } - - void foo2() { - try { - - } - catch (NullPointerException | IllegalArgumentException ex) { - // just to check how the ParentName's option 'skipCahcthParameter' deals with catching - // multiple exception types and - } - } -} diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotation.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotation.java index 608b3a5c1..e4e40d126 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotation.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotation.java @@ -26,4 +26,6 @@ public class InputOverrideAnnotation { InputOverrideAnnotation() {} // No NPE here! InputOverrideAnnotation(int field, java.util.Set<String> packageNames) {} // No NPE here! + + } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputParameterNameMultipleOptions.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputParameterNameMultipleOptions.java deleted file mode 100644 index f42bd2125..000000000 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputParameterNameMultipleOptions.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.puppycrawl.tools.checkstyle.checks.naming; - -import java.util.Set; - -public class InputParameterNameMultipleOptions { - - @Override - public boolean equals(Object o) { - return super.equals(o); - } - - @SuppressWarnings("") - public void foo1(Object object) { - - } - - public void foo2(Integer aaaa) {} - - void foo3() {} // No NPE here! - - void foo4(int abc, int bd) {} // No NPE here! - - int foo5(int abc) {return 1;} // No NPE here! - - private int field; - private Set<String> packageNames; - - InputParameterNameMultipleOptions() {} // No NPE here! - - InputParameterNameMultipleOptions(int field, Set<String> packageNames) {} // No NPE here! - - void foo6() { - try { - - } - catch (Exception ex) { - - } - } - - void foo7() { - try { - - } - catch (NullPointerException | IllegalArgumentException ex) { - // just to check how the ParentName's option 'skipCahcthParameter' deals with catching - // multiple exception types and - } - } -} |