mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
33 lines
545 B
Java
33 lines
545 B
Java
class ExtensionMethodSuppress {
|
|
public void test() {
|
|
Test.staticMethod();
|
|
Test test = new Test();
|
|
Extensions.instanceMethod(test);
|
|
Extensions.staticMethod(test);
|
|
}
|
|
}
|
|
|
|
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) {
|
|
}
|
|
} |