mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 06:21:43 +00:00
Added an error if @Delegate is used recursively.
This commit is contained in:
@@ -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