diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA89801.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA89801.java new file mode 100644 index 000000000000..28d970737d2f --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA89801.java @@ -0,0 +1,7 @@ +import java.util.*; +class Test { + { + Map map1 = null; + Map map2 = (Map) map1; + } +} \ No newline at end of file diff --git a/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/expected.xml b/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/expected.xml new file mode 100644 index 000000000000..4704d91e891d --- /dev/null +++ b/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/expected.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/src/Test.java b/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/src/Test.java new file mode 100644 index 000000000000..bf7e46e214d4 --- /dev/null +++ b/java/java-tests/testData/inspection/redundantCast/generics/CastToUnboundWildcard/src/Test.java @@ -0,0 +1,9 @@ +import java.util.*; +import java.util.Map; + +class Test { + { + Map map1 = null; + Map map2 = (Map) (Map) map1; + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java index 7c327e49d9c1..191c956e498d 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -137,6 +137,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57339() throws Exception {doTest(false);} public void testIDEA57340() throws Exception {doTest(false);} public void testIDEA89771() throws Exception {doTest(false);} + public void testIDEA89801() throws Exception {doTest(false);} public void testInconvertibleTypes() throws Exception {doTest(false);} public void testJavaUtilCollections_NoVerify() throws Exception { diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/RedundantCast15Test.java b/java/java-tests/testSrc/com/intellij/codeInspection/RedundantCast15Test.java index 71f07757ffec..d235bc43b2e1 100644 --- a/java/java-tests/testSrc/com/intellij/codeInspection/RedundantCast15Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInspection/RedundantCast15Test.java @@ -37,6 +37,7 @@ public class RedundantCast15Test extends InspectionTestCase { public void testEnumConstant() throws Exception { doTest(); } public void testRawCast() throws Exception { doTest();} + public void testCastToUnboundWildcard() throws Exception { doTest();} public void testRawCastsToAvoidIncompatibility() throws Exception { doTest();}