Added tests for delegating recursively: issue 305

This commit is contained in:
Roel Spilker
2012-04-30 00:23:33 +02:00
parent b86579c71f
commit 68ca159867
3 changed files with 59 additions and 0 deletions
@@ -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() {
}
}