aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/ValFinal.java5
-rw-r--r--test/transform/resource/after-delombok/ValInLambda.java18
2 files changed, 23 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValFinal.java b/test/transform/resource/after-delombok/ValFinal.java
new file mode 100644
index 00000000..d35ca713
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValFinal.java
@@ -0,0 +1,5 @@
+public class ValFinal {
+ public void test() {
+ final int x = 10;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/ValInLambda.java b/test/transform/resource/after-delombok/ValInLambda.java
new file mode 100644
index 00000000..7ce1e1b4
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValInLambda.java
@@ -0,0 +1,18 @@
+// version 8:
+class ValInLambda {
+ Runnable foo = (Runnable) () -> {
+ final int i = 1;
+ };
+
+ public void easyLambda() {
+ Runnable foo = (Runnable) () -> {
+ final int i = 1;
+ };
+ }
+
+ public void easyIntersectionLambda() {
+ Runnable foo = (Runnable) () -> {
+ final int i = 1;
+ };
+ }
+}