java: redundant explicit types: do not check parent call when expected type is known (IDEA-242819)

GitOrigin-RevId: c1df310c5834f632a02c09adf5126c7c75a3de81
This commit is contained in:
Anna Kozlova
2020-06-08 13:45:42 +03:00
committed by intellij-monorepo-bot
parent 34afcc0b0d
commit 3a27230112
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,12 @@
// "Replace with <>" "true"
import java.util.*;
class MyTest {
private static void foo() {
Map<String, List<Integer>> radinv = new TreeMap<>();
List<Integer> idxs = null;
radinv.put("null", idxs = new ArrayList<>());
}
}
@@ -0,0 +1,12 @@
// "Replace with <>" "true"
import java.util.*;
class MyTest {
private static void foo() {
Map<String, List<Integer>> radinv = new TreeMap<>();
List<Integer> idxs = null;
radinv.put("null", idxs = new ArrayList<Int<caret>eger>());
}
}