From 76c9031f2c967bcfd92d61ceb93e21c54e9d5247 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 13 Aug 2010 14:34:03 +0400 Subject: [PATCH] cleanup --- .../intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java b/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java index e1a7d3fc36f0..5d5943dbe922 100644 --- a/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java +++ b/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java @@ -296,15 +296,14 @@ public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase { } boolean canChange = canChangeDocumentDuringHighlighting(); - CodeInsightTestFixtureImpl.instantiateAndRun(getFile(), getEditor(), toIgnore.toNativeArray(), canChange); + List infos = CodeInsightTestFixtureImpl.instantiateAndRun(getFile(), getEditor(), toIgnore.toNativeArray(), canChange); if (!canChange) { Document document = getDocument(getFile()); ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(getProject())).getFileStatusMap().assertAllDirtyScopesAreNull(document); } - List infos = DaemonCodeAnalyzerImpl.getHighlights(getEditor().getDocument(), getProject()); - return infos == null ? Collections.emptyList() : new ArrayList(infos); + return infos; } @Retention(RetentionPolicy.RUNTIME)