diff --git a/platform/platform-impl/src/com/intellij/internal/statistic/StatisticsUploadAssistant.java b/platform/platform-impl/src/com/intellij/internal/statistic/StatisticsUploadAssistant.java index ac676de86be8..0aacb89e5fbb 100644 --- a/platform/platform-impl/src/com/intellij/internal/statistic/StatisticsUploadAssistant.java +++ b/platform/platform-impl/src/com/intellij/internal/statistic/StatisticsUploadAssistant.java @@ -29,7 +29,6 @@ import com.intellij.openapi.util.Condition; import com.intellij.openapi.util.Pair; import com.intellij.util.Function; import com.intellij.util.containers.ContainerUtil; -import com.intellij.util.containers.HashSet; import com.intellij.util.containers.hash.HashMap; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -112,7 +111,7 @@ public class StatisticsUploadAssistant { public static Map> getPatchedUsages(@NotNull Set disabledGroups, @NotNull Project[] projects, @NotNull SentUsagesPersistence usagesPersistence) { - Map> usages = new HashMap>(); + Map> usages = new LinkedHashMap>(); for (Project project : projects) { final Map> allUsages = getAllUsages(project, disabledGroups); @@ -125,7 +124,7 @@ public class StatisticsUploadAssistant { @NotNull private static Map> filterDisabled(@NotNull Set disabledGroups, @NotNull Map> usages) { - Map> filtered = new HashMap>(); + Map> filtered = new LinkedHashMap>(); for (Map.Entry> usage : usages.entrySet()) { if (!disabledGroups.contains(usage.getKey().getId())) { @@ -154,7 +153,7 @@ public class StatisticsUploadAssistant { final PatchedUsage descriptor = findDescriptor(patchedUsages, Pair.create(sentUsageGroupDescriptor, sentUsage.getKey())); if (descriptor == null) { if (!patchedUsages.containsKey(sentUsageGroupDescriptor)) { - patchedUsages.put(sentUsageGroupDescriptor, new HashSet()); + patchedUsages.put(sentUsageGroupDescriptor, new LinkedHashSet()); } patchedUsages.get(sentUsageGroupDescriptor).add(new PatchedUsage(sentUsage.getKey(), -sentUsage.getValue())); } else { @@ -173,7 +172,7 @@ public class StatisticsUploadAssistant { } private static Map> mapToPatchedUsagesMap(Map> allUsages) { - Map> patchedUsages = new HashMap>(); + Map> patchedUsages = new LinkedHashMap>(); for (Map.Entry> entry : allUsages.entrySet()) { patchedUsages.put(entry.getKey(), ContainerUtil.map2Set(entry.getValue(), new Function() { @Override @@ -187,7 +186,7 @@ public class StatisticsUploadAssistant { @NotNull private static Map> packCollection(@NotNull Map> patchedUsages, Condition condition) { - Map> result = new HashMap>(); + Map> result = new LinkedHashMap>(); for (GroupDescriptor descriptor : patchedUsages.keySet()) { final Set usages = packCollection(patchedUsages.get(descriptor), condition); if (usages.size() > 0) { @@ -225,7 +224,7 @@ public class StatisticsUploadAssistant { @NotNull public static Map> getAllUsages(@Nullable Project project, @NotNull Set disabledGroups) { - Map> usageDescriptors = new HashMap>(); + Map> usageDescriptors = new LinkedHashMap>(); for (UsagesCollector usagesCollector : Extensions.getExtensions(UsagesCollector.EP_NAME)) { final GroupDescriptor groupDescriptor = usagesCollector.getGroupId();