aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ExtensionMethodSuppress.java
blob: d30652d3977b2151d4857ebea054c41cf374a985 (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
42
43
import lombok.experimental.ExtensionMethod;

@ExtensionMethod(Extensions.class)
class ExtensionMethodSuppress {
	public void test() {
		Test.staticMethod();
		
		Test test = new Test();
		test.instanceMethod();
		test.staticMethod();
	}
}

@ExtensionMethod(value = Extensions.class, suppressBaseMethods = false)
class ExtensionMethodKeep {
	public void test() {
		Test.staticMethod();
		
		Test test = new Test();
		test.instanceMethod();
		test.staticMethod();
	}
}

class Test {
	public static void staticMethod() {
		
	}
	
	public void instanceMethod() {
		
	}
}

class Extensions {
	public static void staticMethod(Test test) {
		
	}
	
	public static void instanceMethod(Test test) {
		
	}
}