From eac76915bea898cdbb358ad1aa18cd43eb01564b Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Tue, 15 Nov 2016 15:03:10 +0300 Subject: [PATCH] Minor: remove ImmutableMapBuilder reference from CompilerOutputParser --- .../compilerRunner/CompilerOutputParser.kt | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/compiler/compiler-runner/src/org/jetbrains/kotlin/compilerRunner/CompilerOutputParser.kt b/compiler/compiler-runner/src/org/jetbrains/kotlin/compilerRunner/CompilerOutputParser.kt index 3ea272aad19..bc06a3c3324 100644 --- a/compiler/compiler-runner/src/org/jetbrains/kotlin/compilerRunner/CompilerOutputParser.kt +++ b/compiler/compiler-runner/src/org/jetbrains/kotlin/compilerRunner/CompilerOutputParser.kt @@ -17,7 +17,6 @@ package org.jetbrains.kotlin.compilerRunner import com.intellij.openapi.util.io.FileUtil -import com.intellij.util.containers.ContainerUtil import com.intellij.util.containers.Stack import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity @@ -155,15 +154,14 @@ object CompilerOutputParser { } companion object { - private val CATEGORIES = ContainerUtil.ImmutableMapBuilder() - .put("error", ERROR) - .put("warning", WARNING) - .put("logging", LOGGING) - .put("output", OUTPUT) - .put("exception", EXCEPTION) - .put("info", INFO) - .put("messages", INFO) // Root XML element - .build() + private val CATEGORIES = mapOf( + "error" to ERROR, + "warning" to WARNING, + "logging" to LOGGING, + "output" to OUTPUT, + "exception" to EXCEPTION, + "info" to INFO, + "messages" to INFO) private fun safeParseInt(value: String?, defaultValue: Int): Int { if (value == null) {