aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/DelegateRecursion.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-04-30 00:23:33 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-04-30 00:23:33 +0200
commit68ca15986728c4d0fdf10a98761693ff6623f18f (patch)
tree9fdf5243d39853d3835174e0949beb9865486607 /test/transform/resource/after-ecj/DelegateRecursion.java
parentb86579c71f28d34d265c27450dfa6542b371d5d7 (diff)
downloadlombok-68ca15986728c4d0fdf10a98761693ff6623f18f.tar.gz
lombok-68ca15986728c4d0fdf10a98761693ff6623f18f.tar.bz2
lombok-68ca15986728c4d0fdf10a98761693ff6623f18f.zip
Added tests for delegating recursively: issue 305
Diffstat (limited to 'test/transform/resource/after-ecj/DelegateRecursion.java')
-rw-r--r--test/transform/resource/after-ecj/DelegateRecursion.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/DelegateRecursion.java b/test/transform/resource/after-ecj/DelegateRecursion.java
new file mode 100644
index 00000000..3d9db9ef
--- /dev/null
+++ b/test/transform/resource/after-ecj/DelegateRecursion.java
@@ -0,0 +1,26 @@
+import lombok.Delegate;
+class DelegateRecursionOuterMost {
+ private final @Delegate DelegateRecursionCenter center = new DelegateRecursionCenter();
+ public @java.lang.SuppressWarnings("all") void innerMostMethod() {
+ this.center.innerMostMethod();
+ }
+ DelegateRecursionOuterMost() {
+ super();
+ }
+}
+class DelegateRecursionCenter {
+ private final @Delegate DelegateRecursionInnerMost inner = new DelegateRecursionInnerMost();
+ public @java.lang.SuppressWarnings("all") void innerMostMethod() {
+ this.inner.innerMostMethod();
+ }
+ DelegateRecursionCenter() {
+ super();
+ }
+}
+class DelegateRecursionInnerMost {
+ DelegateRecursionInnerMost() {
+ super();
+ }
+ public void innerMostMethod() {
+ }
+} \ No newline at end of file