cleanup — "might be const" inspection

This commit is contained in:
Vladimir Krivosheev
2018-11-05 12:29:36 +01:00
parent a06dd3ae9d
commit d358f0f9d3
53 changed files with 200 additions and 529 deletions
@@ -1,4 +1,4 @@
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.build.output
import com.intellij.build.FilePosition
@@ -7,7 +7,6 @@ import com.intellij.build.events.impl.FileMessageEventImpl
import com.intellij.build.events.impl.MessageEventImpl
import com.intellij.openapi.util.text.StringUtil
import java.io.File
import java.lang.IllegalStateException
import java.util.function.Consumer
import java.util.regex.Pattern
@@ -20,7 +19,7 @@ import java.util.regex.Pattern
class KotlincOutputParser : BuildOutputParser {
companion object {
private val COMPILER_MESSAGES_GROUP = "Kotlin compiler"
private const val COMPILER_MESSAGES_GROUP = "Kotlin compiler"
}
override fun parse(line: String, reader: BuildOutputInstantReader, consumer: Consumer<in MessageEvent>): Boolean {
@@ -38,7 +38,7 @@ class MethodCall(override val compilerRef: CompilerRef.JavaCompilerMethodRef,
private val context: ChainCompletionContext): RefChainOperation() {
private companion object {
val CONSTRUCTOR_METHOD_NAME = "<init>"
const val CONSTRUCTOR_METHOD_NAME = "<init>"
}
override val qualifierRawName: String