diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-08-21 19:53:36 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-08-21 19:53:36 +0400 |
commit | bd494a8384ef3e46d6a9e5035c6cac750edcd270 (patch) | |
tree | 278f8a4ea72c5993d981edc8b352da21c267dd29 /src/Generation | |
parent | c86f6f5dac3aae2e4b26e911ad0d3b8e88c65375 (diff) | |
download | dokka-bd494a8384ef3e46d6a9e5035c6cac750edcd270.tar.gz dokka-bd494a8384ef3e46d6a9e5035c6cac750edcd270.tar.bz2 dokka-bd494a8384ef3e46d6a9e5035c6cac750edcd270.zip |
LinkedHashMap is now default for groupBy in stdlib.
Diffstat (limited to 'src/Generation')
-rw-r--r-- | src/Generation/FileGenerator.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt index 5221c400..3e410d39 100644 --- a/src/Generation/FileGenerator.kt +++ b/src/Generation/FileGenerator.kt @@ -12,7 +12,7 @@ public class FileGenerator(val signatureGenerator: LanguageService, public fun buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) public fun buildPages(nodes: Iterable<DocumentationNode>) { - for ((location, items) in nodes.groupByTo(LinkedHashMap()) { locationService.location(it) }) { + for ((location, items) in nodes.groupBy { locationService.location(it) }) { val file = location.file.appendExtension(formatService.extension) file.getParentFile()?.mkdirs() FileOutputStream(file).use { @@ -25,7 +25,7 @@ public class FileGenerator(val signatureGenerator: LanguageService, } public fun buildOutlines(nodes: Iterable<DocumentationNode>) { - for ((location, items) in nodes.groupByTo(LinkedHashMap()) { locationService.location(it) }) { + for ((location, items) in nodes.groupBy { locationService.location(it) }) { val file = location.file.appendExtension("yml") // TODO: hardcoded file.getParentFile()?.mkdirs() FileOutputStream(file).use { |