mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix for changing parameter types for method which used to extend the generic-parameter-method which was refactored to bounded wildcards and "both method signatures have same erasure" error appeared as a result
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// "Fix method 'foo' parameters with bounded wildcards" "true"
|
||||
import java.util.List;
|
||||
|
||||
interface Xo {
|
||||
void foo(List<? super String> s);
|
||||
}
|
||||
public class ErrWarn implements Xo {
|
||||
public void <caret>foo(List<? super String> s) {
|
||||
|
||||
}
|
||||
}
|
||||
class D extends ErrWarn {
|
||||
@Override
|
||||
public void foo(List<? super String> s) {
|
||||
super.foo(s);
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Fix method 'foo' parameters with bounded wildcards" "true"
|
||||
import java.util.List;
|
||||
|
||||
interface Xo {
|
||||
void foo(List<? super String> s);
|
||||
}
|
||||
public class ErrWarn implements Xo {
|
||||
public void <caret>foo(List<String> s) {
|
||||
|
||||
}
|
||||
}
|
||||
class D extends ErrWarn {
|
||||
@Override
|
||||
public void foo(List<String> s) {
|
||||
super.foo(s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user