provide quick fix to qualify super call to default interface method from class (IDEA-172325)

This commit is contained in:
Anna Kozlova
2017-05-30 15:00:42 +03:00
parent d2e9ac696e
commit 3f76ffa2f8
5 changed files with 45 additions and 2 deletions
@@ -0,0 +1,14 @@
// "Qualify super expression with 'Super'" "true"
interface Super
{
default void method()
{
System.out.println("Super.method()");
}
}
class Sub implements Super {
void foo() {
Super.super.method();
}
}
@@ -0,0 +1,11 @@
// "Qualify super expression with 'Super'" "false"
interface Super
{
void method();
}
interface Sub extends Super {
default void foo() {
<caret>super.method();
}
}
@@ -0,0 +1,14 @@
// "Qualify super expression with 'Super'" "true"
interface Super
{
default void method()
{
System.out.println("Super.method()");
}
}
class Sub implements Super {
void foo() {
super.me<caret>thod();
}
}