mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
Added tests for delegating recursively: issue 305
This commit is contained in:
1 parent
b86579c71f
commit
68ca159867
3 files changed
+59
No files matched your search
@@ -0,0 +1,18 @@
|
||||
class DelegateRecursionOuterMost {
|
||||
private final DelegateRecursionCenter center = new DelegateRecursionCenter();
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void innerMostMethod() {
|
||||
this.center.innerMostMethod();
|
||||
}
|
||||
}
|
||||
class DelegateRecursionCenter {
|
||||
private final DelegateRecursionInnerMost inner = new DelegateRecursionInnerMost();
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void innerMostMethod() {
|
||||
this.inner.innerMostMethod();
|
||||
}
|
||||
}
|
||||
class DelegateRecursionInnerMost {
|
||||
public void innerMostMethod() {
|
||||
}
|
||||
}
|
||||
@@ -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() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import lombok.Delegate;
|
||||
class DelegateRecursionOuterMost {
|
||||
@Delegate
|
||||
private final DelegateRecursionCenter center = new DelegateRecursionCenter();
|
||||
}
|
||||
|
||||
class DelegateRecursionCenter {
|
||||
@Delegate
|
||||
private final DelegateRecursionInnerMost inner = new DelegateRecursionInnerMost();
|
||||
}
|
||||
|
||||
class DelegateRecursionInnerMost {
|
||||
public void innerMostMethod() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user