aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/ValFinal.java9
-rw-r--r--test/transform/resource/after-ecj/ValInLambda.java21
2 files changed, 30 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValFinal.java b/test/transform/resource/after-ecj/ValFinal.java
new file mode 100644
index 00000000..d7cf9cb7
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValFinal.java
@@ -0,0 +1,9 @@
+import lombok.val;
+public class ValFinal {
+ public ValFinal() {
+ super();
+ }
+ public void test() {
+ final @val int x = 10;
+ }
+}
diff --git a/test/transform/resource/after-ecj/ValInLambda.java b/test/transform/resource/after-ecj/ValInLambda.java
new file mode 100644
index 00000000..7669789b
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValInLambda.java
@@ -0,0 +1,21 @@
+// version 8:
+
+import lombok.val;
+class ValInLambda {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ ValInLambda() {
+ super();
+ }
+ public void easyLambda() {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ }
+ public void easyIntersectionLambda() {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ }
+}