diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks')
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 - } - } -} |