Make order of rendered diagnostics more stable
There was a bug that sometimes diagnostics on the same element with same names but with different parameters had been reshuffled.
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
a42406f2aa
commit
047f9abaf7
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.kotlin.checkers;
|
||||
|
||||
import com.google.common.collect.LinkedListMultimap;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -708,7 +709,7 @@ public class CheckerTestUtil {
|
||||
}
|
||||
|
||||
public Map<AbstractTestDiagnostic, TextDiagnostic> getTextDiagnosticsMap() {
|
||||
Map<AbstractTestDiagnostic, TextDiagnostic> diagnosticMap = new HashMap<>();
|
||||
Map<AbstractTestDiagnostic, TextDiagnostic> diagnosticMap = Maps.newLinkedHashMap();
|
||||
for (AbstractTestDiagnostic diagnostic : diagnostics) {
|
||||
diagnosticMap.put(diagnostic, TextDiagnostic.asTextDiagnostic(diagnostic));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user