Java: When generating return statement where the returned type is a type parameter array (like T[]) don't suggest Collection.toArray() (IDEA-163341)

This commit is contained in:
Pavel Dolgov
2017-01-13 12:22:32 +03:00
parent 83b5637a43
commit 85e93b585f
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,8 @@
// "Add 'return' statement" "true"
import java.util.*;
class A<T> {
T[] f() {
Set<T> set = new HashSet<>();
return null;
}
}
@@ -0,0 +1,7 @@
// "Add 'return' statement" "true"
import java.util.*;
class A<T> {
T[] f() {
Set<T> set = new HashSet<>();
<caret>}
}