mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
safe delete: delete type parameters of the overriding method, otherwise it would be a compilation error (IDEA-142378)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
public <<caret>T> void foo() {}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
|
||||
@Override
|
||||
public <T> void foo() {
|
||||
super.foo();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
public void foo() {}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
|
||||
@Override
|
||||
public void foo() {
|
||||
super.foo();
|
||||
}
|
||||
}
|
||||
@@ -277,6 +277,10 @@ public class SafeDeleteTest extends MultiFileTestCase {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
public void testTypeParameterWithinMethodHierarchy() throws Exception {
|
||||
doSingleFileTest();
|
||||
}
|
||||
|
||||
public void testClassWithInnerStaticImport() throws Exception {
|
||||
doTest("ClassWithInnerStaticImport");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user