diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt index 631c1960ba5..deee12bdd05 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt @@ -144,8 +144,8 @@ private fun Properties.storeProperties(file: File) { private fun Properties.putAndRunOnReplace(key: Any, newValue: Any, beforeReplace: (Any, Any, Any) -> Unit) { val oldValue = this[key] - if (oldValue != null && oldValue!! != newValue) { - beforeReplace(key, oldValue!!, newValue) + if (oldValue != null && oldValue != newValue) { + beforeReplace(key, oldValue, newValue) } this[key] = newValue }