KT-12877: minor fixes and cleanup

This commit is contained in:
Alexey Andreev
2016-11-21 15:31:04 +03:00
committed by Alexey Andreev
parent d1820b42ef
commit d40e923722
5 changed files with 3 additions and 6 deletions
@@ -50,7 +50,7 @@ class KotlinJavascriptPackageFragment(
loadResource(KotlinJavascriptSerializedResourcePaths.getFileListFilePath(fqName))?.use { rawInput ->
val input = CodedInputStream.newInstance(rawInput)
val filesProto = JsProtoBuf.Files.parseFrom(input).fileOrBuilderList
filesProto.map { it.id to FileHolder(it.annotationList) }.toMap()
filesProto.associate { it.id to FileHolder(it.annotationList) }
}.orEmpty()
}