mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
replace method duplicates: qualify with super instead of this when method is located in the base class ( IDEA-21753 )
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class a {
|
||||
void f<caret>oo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
void foo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
public class a {
|
||||
void foo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
void foo() {
|
||||
b.super.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user