mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[lombok] IDEA-283619, IDEA-289704 added findUsages support for @Delegate methods
GitOrigin-RevId: 5de0a2a8571a3423f44da853329de93d404d4665
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33296c3897
commit
cff1eae5f1
20
plugins/lombok/testData/usage/FindUsageDelegateField.java
Normal file
20
plugins/lombok/testData/usage/FindUsageDelegateField.java
Normal file
@@ -0,0 +1,20 @@
|
||||
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>;
|
||||
}
|
||||
}
|
||||
19
plugins/lombok/testData/usage/FindUsageDelegateMethod.java
Normal file
19
plugins/lombok/testData/usage/FindUsageDelegateMethod.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import lombok.experimental.Delegate;
|
||||
|
||||
public class FindUsageDelegateMethod {
|
||||
@Delegate
|
||||
private ClassB classB;
|
||||
}
|
||||
|
||||
class ClassB {
|
||||
public void foo<caret>() {
|
||||
}
|
||||
}
|
||||
|
||||
class ClassC {
|
||||
private FindUsageDelegateMethod classA;
|
||||
|
||||
public void bar() {
|
||||
classA.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user