aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
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/after-ecj
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/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/NonNullOnParameterAbstract.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/NonNullOnParameterAbstract.java b/test/transform/resource/after-ecj/NonNullOnParameterAbstract.java
new file mode 100644
index 00000000..a7dae247
--- /dev/null
+++ b/test/transform/resource/after-ecj/NonNullOnParameterAbstract.java
@@ -0,0 +1,13 @@
+abstract class NonNullOnParameterAbstract {
+ NonNullOnParameterAbstract() {
+ super();
+ }
+ public void test(@lombok.NonNull String arg) {
+ if ((arg == null))
+ {
+ throw new java.lang.NullPointerException("arg");
+ }
+ System.out.println("Hey");
+ }
+ public abstract void test2(@lombok.NonNull String arg);
+} \ No newline at end of file