Fix to avoid test flickering (SlicerNullnessGroupingTestGenerated.testInlineFunctionManyCalls())

This commit is contained in:
Valentin Kipyatkov
2020-04-17 16:11:38 +03:00
parent e6cfced54a
commit e1ee75c864
@@ -210,7 +210,9 @@ public abstract class HackedSliceNullnessAnalyzerBase {
static final int NULLS = 0;
static final int NOT_NULLS = 1;
static final int UNKNOWNS = 2;
final Collection<PsiElement>[] groupedByValue = new Collection[] {new THashSet<PsiElement>(),new THashSet<PsiElement>(),new THashSet<PsiElement>()};
// it's important to use LinkedHashSet's to have consistent output in tests
final Collection<PsiElement>[] groupedByValue =
new Collection[] {new LinkedHashSet<PsiElement>(), new LinkedHashSet<PsiElement>(), new LinkedHashSet<PsiElement>()};
public void clear() {
for (Collection<PsiElement> elements : groupedByValue) {