mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
Java: Don't offer the quick-fix Collection.toArray() for type parameter arrays (like T[]) (IDEA-163341)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Apply conversion '.toArray(new T[0])'" "false"
|
||||
|
||||
import java.util.*;
|
||||
class TypeVar<T> {
|
||||
T[] foo() {
|
||||
Set<T> set = new HashSet<>();
|
||||
T[] arr = <caret>set;
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Apply conversion '.toArray(new T[0][])'" "false"
|
||||
|
||||
import java.util.*;
|
||||
class TypeVarArray<T> {
|
||||
T[][] foo() {
|
||||
Set<T[]> set = new HashSet<>();
|
||||
T[][] arr = <caret>set;
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user