mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
convert to instance/move instance: support default methods in interfaces for java 8 (IDEA-154833)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public class Y {
|
||||
void method() {
|
||||
System.out.println(this);
|
||||
foo();
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
}
|
||||
}
|
||||
public class X {
|
||||
|
||||
{
|
||||
Y y = new Y();
|
||||
y.method();
|
||||
new Y().method();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user