mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
safe delete: delete @Override annotation each time super method is deleted; rise a conflict when a usage is in overriding method which won't be deleted (IDEA-110840; IDEA-110841)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Super {
|
||||
}
|
||||
|
||||
class Child extends Super {
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void bar(Child c) {
|
||||
c.foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
class Super {
|
||||
void fo<caret>o() {}
|
||||
}
|
||||
|
||||
class Child extends Super {
|
||||
@Override
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void bar(Child c) {
|
||||
c.foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
class Super {
|
||||
}
|
||||
|
||||
class Child extends Super {
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
void bar(Child c) {
|
||||
c.foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
class Super {
|
||||
void f<caret>oo() {}
|
||||
}
|
||||
|
||||
class Child extends Super {
|
||||
{
|
||||
foo();
|
||||
}
|
||||
|
||||
@Override
|
||||
void foo() {
|
||||
super.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user