redundant type args: copy expected type for top level calls(IDEA-184050)

This commit is contained in:
Anna.Kozlova
2017-12-20 16:11:31 +01:00
parent c28bb62a86
commit b0c74e1ec8
5 changed files with 36 additions and 15 deletions
@@ -0,0 +1,8 @@
// "Remove explicit type arguments" "true"
import java.util.*;
class Foo {
{
List<String> m = new ArrayList<>(Collections.nCopies(1, null));
}
}
@@ -0,0 +1,8 @@
// "Remove explicit type arguments" "true"
import java.util.*;
class Foo {
{
List<String> m = new ArrayList<>(Collections.<St<caret>ring>nCopies(1, null));
}
}