diff options
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/ValDefault.java | 7 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/ValLambda.java | 19 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValDefault.java b/test/transform/resource/after-ecj/ValDefault.java new file mode 100644 index 00000000..347f0302 --- /dev/null +++ b/test/transform/resource/after-ecj/ValDefault.java @@ -0,0 +1,7 @@ +interface ValDefault { + int size(); + default void method() { + final @lombok.val int x = 1; + final @lombok.val int size = size(); + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/ValLambda.java b/test/transform/resource/after-ecj/ValLambda.java new file mode 100644 index 00000000..4bf3265b --- /dev/null +++ b/test/transform/resource/after-ecj/ValLambda.java @@ -0,0 +1,19 @@ +class ValLambda { + ValLambda() { + super(); + } + public void easyLambda() { + final @lombok.val java.lang.Runnable foo = (Runnable) () -> { +}; + } + public void easyIntersectionLambda() { + final @lombok.val java.lang.Object foo = (Runnable & java.io.Serializable) () -> { +}; + final @lombok.val java.lang.Object bar = (java.io.Serializable & Runnable) () -> { +}; + } + public void easyLubLambda() { + final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> { +} : (Runnable) System.out::println); + } +}
\ No newline at end of file |