aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/ValFinal.java6
-rw-r--r--test/transform/resource/before/ValInLambda.java21
2 files changed, 27 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValFinal.java b/test/transform/resource/before/ValFinal.java
new file mode 100644
index 00000000..3c5af366
--- /dev/null
+++ b/test/transform/resource/before/ValFinal.java
@@ -0,0 +1,6 @@
+import lombok.val;
+public class ValFinal {
+ public void test() {
+ final val x = 10;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ValInLambda.java b/test/transform/resource/before/ValInLambda.java
new file mode 100644
index 00000000..2c2a5942
--- /dev/null
+++ b/test/transform/resource/before/ValInLambda.java
@@ -0,0 +1,21 @@
+// version 8:
+
+import lombok.val;
+
+class ValInLambda {
+ Runnable foo = (Runnable) () -> {
+ val i = 1;
+ };
+
+ public void easyLambda() {
+ Runnable foo = (Runnable) () -> {
+ val i = 1;
+ };
+ }
+
+ public void easyIntersectionLambda() {
+ Runnable foo = (Runnable) () -> {
+ val i = 1;
+ };
+ }
+}