From 5335a81f7d2ebbd18d6f4dd8c2b15259ad6ef71c Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Sat, 31 Oct 2015 14:45:02 +0300 Subject: [PATCH] Minor, add JvmField to a constant --- .../kotlin/cli/common/messages/CompilerMessageLocation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/messages/CompilerMessageLocation.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/messages/CompilerMessageLocation.kt index 22f65941aca..b8150ae452a 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/messages/CompilerMessageLocation.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/messages/CompilerMessageLocation.kt @@ -23,10 +23,10 @@ public data class CompilerMessageLocation private constructor( public val lineContent: String? ) { override fun toString(): String = - path + (if (line != -1 || column != -1) " (" + line + ":" + column + ")" else "") + path + (if (line != -1 || column != -1) " ($line:$column)" else "") companion object { - @JvmStatic + @JvmField public val NO_LOCATION: CompilerMessageLocation = CompilerMessageLocation(null, -1, -1, null) @JvmStatic