aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ExtensionMethodSuppress.java
blob: 83e4b57f824dd7630b5c514350ca868f4d28344f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import lombok.experimental.ExtensionMethod;
@ExtensionMethod(Extensions.class) class ExtensionMethodSuppress {
  ExtensionMethodSuppress() {
    super();
  }
  public void test() {
    Test.staticMethod();
    Test test = new Test();
    Extensions.instanceMethod(test);
    Extensions.staticMethod(test);
  }
}
@ExtensionMethod(value = Extensions.class,suppressBaseMethods = false) class ExtensionMethodKeep {
  ExtensionMethodKeep() {
    super();
  }
  public void test() {
    Test.staticMethod();
    Test test = new Test();
    test.instanceMethod();
    test.staticMethod();
  }
}
class Test {
  Test() {
    super();
  }
  public static void staticMethod() {
  }
  public void instanceMethod() {
  }
}
class Extensions {
  Extensions() {
    super();
  }
  public static void staticMethod(Test test) {
  }
  public static void instanceMethod(Test test) {
  }
}