From 7ee1e555bca6ce876ccff5fa12afc45146ad472b Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 13 Oct 2015 10:15:32 +0300 Subject: [PATCH] DataFlowValue enum property rename: name --> str --- .../kotlin/resolve/calls/smartcasts/DataFlowValue.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowValue.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowValue.kt index 12dac732e39..1c44ddb56d3 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowValue.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/smartcasts/DataFlowValue.kt @@ -26,7 +26,7 @@ import org.jetbrains.kotlin.types.JetType */ class DataFlowValue(val id: Any?, val type: JetType, val kind: DataFlowValue.Kind, val immanentNullability: Nullability) { - enum class Kind(private val name: String) { + enum class Kind(private val str: String) { // Smart casts are completely safe STABLE_VALUE("stable"), // Smart casts are safe but possible changes in loops / closures ahead must be taken into account @@ -35,7 +35,7 @@ class DataFlowValue(val id: Any?, val type: JetType, val kind: DataFlowValue.Kin UNPREDICTABLE_VARIABLE("unpredictable"), OTHER("other"); - override fun toString() = name + override fun toString() = str fun isStable() = this == STABLE_VALUE }