mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
20 lines
405 B
Java
20 lines
405 B
Java
import lombok.Getter;
|
|
import lombok.experimental.Delegate;
|
|
|
|
public class FindUsageDelegateField {
|
|
public static void main(String[] args) {
|
|
Ctx<Integer> ctx = new Ctx<>();
|
|
String data = ctx.getId();
|
|
System.out.println(data);
|
|
}
|
|
|
|
public static class Ctx<T> {
|
|
@Delegate
|
|
private Param<T> param;
|
|
}
|
|
|
|
@Getter
|
|
public static class Param<T> {
|
|
private final String id<caret>;
|
|
}
|
|
} |