mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: add default modifier when extracted into interface (java 8 only)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
interface I {
|
||||
default void foo () {
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private default void newMethod() {
|
||||
System.out.println("hello");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user