From 562a03a91344ff2e378a0e8d1a2013574631a138 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 26 Jul 2013 17:58:04 +0200 Subject: [PATCH] testdata for IDEA-107440 --- .../genericsHighlighting/IDEA107440.java | 18 ++++++++++++++++++ .../daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 19 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA107440.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA107440.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA107440.java new file mode 100644 index 000000000000..a0c69e6e7d30 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA107440.java @@ -0,0 +1,18 @@ +class GoodCodeRed { + static class ClassA { + } + + static class Pair { + } + + void max(final M object, Pair attribute, final N cnt) { + } + + void max(final M object, Pair attribute, final N str) { + } + + + { + max(new ClassA(), new Pair(), 1); + } +} \ 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 ae8ac75259a6..e4cf54b4d843 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -307,6 +307,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testCaptureWildcardsInTypeCasts() { doTest5(false); } public void testIDEA111085() { doTest5(false); } public void testIDEA109556() { doTest5(false); } + public void testIDEA107440() { doTest5(false); } public void testJavaUtilCollections_NoVerify() throws Exception { PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));