convert to instance/move instance: support default methods in interfaces for java 8 (IDEA-154833)

This commit is contained in:
Anna.Kozlova
2016-04-18 12:54:50 +02:00
parent 4c06b785c0
commit 16f4b4c883
26 changed files with 400 additions and 17 deletions
@@ -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++;
}
}