aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorbulgakovalexander <mfourgeneralsherman@gmail.com>2016-10-20 16:47:35 +0300
committerGitHub <noreply@github.com>2016-10-20 16:47:35 +0300
commit4d9da60f4f2643302e53267ef150ee4c68c39d7c (patch)
tree6986510d8a45e2cca4fcb81d87a3d675032a0c10 /test/transform/resource/after-ecj
parentaa2f4424a78b962edf0b7e0ef551a82c5822619a (diff)
parent49f0bc1c3ede3c81754568af22fcdbbe8f4b5a8f (diff)
downloadlombok-4d9da60f4f2643302e53267ef150ee4c68c39d7c.tar.gz
lombok-4d9da60f4f2643302e53267ef150ee4c68c39d7c.tar.bz2
lombok-4d9da60f4f2643302e53267ef150ee4c68c39d7c.zip
Merge pull request #1 from rzwitserloot/master
merge from the main repo
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;
+};
+ }
+}