aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/NonNullOnParameterAbstract.java
diff options
context:
space:
mode:
authorSander Koning <askoning@gmail.com>2013-09-20 17:13:39 +0200
committerSander Koning <askoning@gmail.com>2013-09-20 17:13:39 +0200
commit72b55dccb18f38b8aefd0ac8e7c2e8bd2dd5c057 (patch)
tree253be100a1c3402e42426dd028a8fdacf2161c9b /test/transform/resource/before/NonNullOnParameterAbstract.java
parentcf7290f86133bbed53c78120453ddfc2ed734fac (diff)
downloadlombok-72b55dccb18f38b8aefd0ac8e7c2e8bd2dd5c057.tar.gz
lombok-72b55dccb18f38b8aefd0ac8e7c2e8bd2dd5c057.tar.bz2
lombok-72b55dccb18f38b8aefd0ac8e7c2e8bd2dd5c057.zip
Issue 559: NullPointerException when @NonNull is used in abstract method
- Prevent NPE in javac and give a proper warning in both eclipse and javac - Add test cases
Diffstat (limited to 'test/transform/resource/before/NonNullOnParameterAbstract.java')
-rw-r--r--test/transform/resource/before/NonNullOnParameterAbstract.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/transform/resource/before/NonNullOnParameterAbstract.java b/test/transform/resource/before/NonNullOnParameterAbstract.java
new file mode 100644
index 00000000..16691184
--- /dev/null
+++ b/test/transform/resource/before/NonNullOnParameterAbstract.java
@@ -0,0 +1,7 @@
+abstract class NonNullOnParameterAbstract {
+ public void test(@lombok.NonNull String arg) {
+ System.out.println("Hey");
+ }
+
+ public abstract void test2(@lombok.NonNull String arg);
+} \ No newline at end of file