Minor: remove ImmutableMapBuilder reference from CompilerOutputParser

This commit is contained in:
Alexey Tsvetkov
2016-11-15 15:03:10 +03:00
parent c8394cd0cc
commit eac76915be
@@ -17,7 +17,6 @@
package org.jetbrains.kotlin.compilerRunner package org.jetbrains.kotlin.compilerRunner
import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.io.FileUtil
import com.intellij.util.containers.ContainerUtil
import com.intellij.util.containers.Stack import com.intellij.util.containers.Stack
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
@@ -155,15 +154,14 @@ object CompilerOutputParser {
} }
companion object { companion object {
private val CATEGORIES = ContainerUtil.ImmutableMapBuilder<String, CompilerMessageSeverity>() private val CATEGORIES = mapOf(
.put("error", ERROR) "error" to ERROR,
.put("warning", WARNING) "warning" to WARNING,
.put("logging", LOGGING) "logging" to LOGGING,
.put("output", OUTPUT) "output" to OUTPUT,
.put("exception", EXCEPTION) "exception" to EXCEPTION,
.put("info", INFO) "info" to INFO,
.put("messages", INFO) // Root XML element "messages" to INFO)
.build()
private fun safeParseInt(value: String?, defaultValue: Int): Int { private fun safeParseInt(value: String?, defaultValue: Int): Int {
if (value == null) { if (value == null) {