mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
provide quick fix to qualify super call to default interface method from class (IDEA-172325)
This commit is contained in:
+14
@@ -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();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Qualify super expression with 'Super'" "false"
|
||||
interface Super
|
||||
{
|
||||
void method();
|
||||
}
|
||||
|
||||
interface Sub extends Super {
|
||||
default void foo() {
|
||||
<caret>super.method();
|
||||
}
|
||||
}
|
||||
+14
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user