aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValInvalidParameter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2021-10-22 09:54:12 +0200
committerGitHub <noreply@github.com>2021-10-22 09:54:12 +0200
commit341c458f108d4bb207e32c6e61647ca673526a6e (patch)
treef65f76f8c838a73f5f91f8efe0811c6b019857bb /test/transform/resource/after-ecj/ValInvalidParameter.java
parent13d84b129e562fdc71b049778c3b3bd2376e29a4 (diff)
parent553b25addde4fab136258f7718e274a98bfbe34a (diff)
downloadlombok-341c458f108d4bb207e32c6e61647ca673526a6e.tar.gz
lombok-341c458f108d4bb207e32c6e61647ca673526a6e.tar.bz2
lombok-341c458f108d4bb207e32c6e61647ca673526a6e.zip
Merge pull request #3007 from Rawi01/eclipse-junit
Resolve var/val only once in eclipse
Diffstat (limited to 'test/transform/resource/after-ecj/ValInvalidParameter.java')
-rw-r--r--test/transform/resource/after-ecj/ValInvalidParameter.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValInvalidParameter.java b/test/transform/resource/after-ecj/ValInvalidParameter.java
new file mode 100644
index 00000000..14549aa7
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValInvalidParameter.java
@@ -0,0 +1,29 @@
+import lombok.val;
+public class ValInvalidParameter {
+ public ValInvalidParameter() {
+ super();
+ }
+ public void val() {
+ final @val java.lang.Object a = a(new NonExistingClass());
+ final @val java.lang.Object b = a(a(new NonExistingClass()));
+ final @val java.lang.Object c = nonExisitingMethod(b(1));
+ final @val java.lang.Object d = nonExistingObject.nonExistingMethod();
+ final @val java.lang.Object e = b(1).nonExistingMethod();
+ final @val java.lang.Object f = ((1 > 2) ? a(new NonExistingClass()) : a(new NonExistingClass()));
+ final @val java.lang.Object g = b2(1);
+ final @val java.lang.Object h = b2(a("a"), a(null));
+ final @val java.lang.Object i = a(a(null));
+ }
+ public int a(String param) {
+ return 0;
+ }
+ public int a(Integer param) {
+ return 0;
+ }
+ public Integer b(int i) {
+ return i;
+ }
+ public Integer b2(int i, int j) {
+ return i;
+ }
+} \ No newline at end of file