aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming
diff options
context:
space:
mode:
authorAndrei Selkin <andreyselkin@gmail.com>2015-12-09 22:54:41 +0300
committerAndrei Selkin <andreyselkin@gmail.com>2015-12-09 22:59:54 +0300
commit75bbb441800de900e268cfa5ee82a64966b405b2 (patch)
treed697871302b2065249acb8cec88688c7869ada01 /src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming
parent5d7226fac58883bc41058b28b8fcdb6f159cf1e2 (diff)
downloadcheckstyle-75bbb441800de900e268cfa5ee82a64966b405b2.tar.gz
Issue #2678: Fix NPE in ParameterNameCheck
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotationNoNPE.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotationNoNPE.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotationNoNPE.java
new file mode 100644
index 000000000..8295a120e
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOverrideAnnotationNoNPE.java
@@ -0,0 +1,27 @@
+package com.puppycrawl.tools.checkstyle.checks.naming;
+
+class InputOverrideAnnotationNoNPE
+{
+ // method with many parameters
+ void myMethod(int a, int b) {
+
+ }
+
+ // method with many parameters
+ void myMethod2(int a, int b) {
+
+ }
+}
+
+class Test extends InputOverrideAnnotationNoNPE
+{
+ @Override
+ void myMethod(int a, int b) {
+
+ }
+
+ @java.lang.Override
+ void myMethod2(int a, int b) {
+
+ }
+}