mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
[bugfix] Fix suppressBaseMethods in ecj/eclipse
This commit is contained in:
1 parent
7dfbe4323c
commit
4d2ae4ba32
7 files changed
+153
-4
No files matched your search
@@ -0,0 +1,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) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user