diff options
author | Andrei Selkin <andreyselkin@gmail.com> | 2015-11-05 23:21:56 +0300 |
---|---|---|
committer | Roman Ivanov <ivanov-jr@mail.ru> | 2015-11-05 20:59:34 -0800 |
commit | 8381754587bee0de49489e9bfb11e5912f664e87 (patch) | |
tree | ad3a1bf561ac8e5c25ebb79775e5f0af8e8f76c0 /src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming | |
parent | be8a60a4d95978e1b6cdb32fefca58f424e61178 (diff) | |
download | checkstyle-8381754587bee0de49489e9bfb11e5912f664e87.tar.gz |
Issue #2290: Fix NPE in isOverriddenMethod during validation of methods with implicit modifiers
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotation.java | 15 |
1 files changed, 15 insertions, 0 deletions
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 82d99508a..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 @@ -13,4 +13,19 @@ public class InputOverrideAnnotation { } 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 java.util.Set<String> packageNames; + + InputOverrideAnnotation() {} // No NPE here! + + InputOverrideAnnotation(int field, java.util.Set<String> packageNames) {} // No NPE here! + + } |