mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 12:14:07 +00:00
Added an error if @Delegate is used recursively.
This commit is contained in:
1 parent
4996428ea1
commit
8cfa421ce5
19 files changed
+157
-112
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import lombok.Delegate;
|
||||
//skip compare content: This test is to see if the 'delegate recursion is not supported' error pops up.
|
||||
import lombok.experimental.Delegate;
|
||||
class DelegateRecursionOuterMost {
|
||||
@Delegate
|
||||
private final DelegateRecursionCenter center = new DelegateRecursionCenter();
|
||||
@@ -12,4 +13,4 @@ class DelegateRecursionCenter {
|
||||
class DelegateRecursionInnerMost {
|
||||
public void innerMostMethod() {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user