mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-127637 code completion utility should strip 'extends' wildcards from generic qualifiers of generated anonymous classes
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
class Main {
|
||||
void foo(List<? extends Number> list) {
|
||||
list.forEach(new Consumer<Number>() {
|
||||
@Override
|
||||
public void consume(Number number) {
|
||||
<caret>
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class List<T> {
|
||||
void forEach(Consumer<? super T> consumer);
|
||||
}
|
||||
|
||||
interface Consumer<T> { void consume(T t); }
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Main {
|
||||
void foo(List<? extends Number> list) {
|
||||
list.forEach(new <caret>);
|
||||
}
|
||||
}
|
||||
|
||||
class List<T> {
|
||||
void forEach(Consumer<? super T> consumer);
|
||||
}
|
||||
|
||||
interface Consumer<T> { void consume(T t); }
|
||||
Reference in New Issue
Block a user