mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
safe delete: remove @Override annotation when method is made private
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
interface Am {
|
||||
String getIc<caret>on();
|
||||
}
|
||||
|
||||
class AIIm implements Am {
|
||||
@Override
|
||||
public String getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new AIIm().getIcon();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
interface Am {
|
||||
}
|
||||
|
||||
class AIIm implements Am {
|
||||
private String getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new AIIm().getIcon();
|
||||
}
|
||||
}
|
||||
@@ -144,6 +144,10 @@ public class SafeDeleteTest extends MultiFileTestCase {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
public void testStripOverride() throws Exception {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
private void doTest(@NonNls final String qClassName) throws Exception {
|
||||
doTest(new PerformAction() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user