From f4ffd392a5673980c6c1bf77ed23efa53c10a628 Mon Sep 17 00:00:00 2001 From: aleksZubakov Date: Mon, 1 Oct 2018 20:07:54 +0300 Subject: Eliminate tags shuffle --- core/src/main/kotlin/Generation/DocumentationMerger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin/Generation/DocumentationMerger.kt') diff --git a/core/src/main/kotlin/Generation/DocumentationMerger.kt b/core/src/main/kotlin/Generation/DocumentationMerger.kt index f6280fb9..e5186e72 100644 --- a/core/src/main/kotlin/Generation/DocumentationMerger.kt +++ b/core/src/main/kotlin/Generation/DocumentationMerger.kt @@ -130,7 +130,7 @@ class DocumentationMerger( val nodeWithMaxPlatforms = nodes.maxBy { it.platforms.size }!! val maxPlatforms = nodeWithMaxPlatforms.platforms.toSet() val notContained = nodes.filterNot { maxPlatforms.containsAll(it.platforms) } - val reducedDuplicates = notContained + nodeWithMaxPlatforms + val reducedDuplicates = listOf(nodeWithMaxPlatforms) + notContained if (!reducedDuplicates.containsAll(nodes)) { return mergeMembersWithEqualSignature(signature, reducedDuplicates) } -- cgit