mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 11:12:33 +00:00
23 lines
346 B
Java
23 lines
346 B
Java
class ExtensionMethodNonStaticAccess {
|
|
ExtensionMethodNonStaticAccess() {
|
|
super();
|
|
}
|
|
public void method() {
|
|
Derived derived = new Derived();
|
|
derived.staticMethod();
|
|
}
|
|
}
|
|
class Base {
|
|
Base() {
|
|
super();
|
|
}
|
|
static String staticMethod() {
|
|
return "";
|
|
}
|
|
}
|
|
class Derived extends Base {
|
|
Derived() {
|
|
super();
|
|
}
|
|
}
|