mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
convert to instance/move instance: support default methods in interfaces for java 8 (IDEA-154833)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
interface Foreign {
|
||||
void foo(Test1 test1);
|
||||
default void foo(Test1 test1) {
|
||||
test1.field++;
|
||||
}
|
||||
}
|
||||
|
||||
class ForeignImpl implements Foreign {
|
||||
@Override
|
||||
public void foo(Test1 test1) {
|
||||
test1.field++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user