diff --git a/jps/jps-common/src/org/jetbrains/kotlin/arguments/CompilerArgumentsSerializer.kt b/jps/jps-common/src/org/jetbrains/kotlin/arguments/CompilerArgumentsSerializer.kt index 7d8d73cc8d0..6ed05b200e3 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/arguments/CompilerArgumentsSerializer.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/arguments/CompilerArgumentsSerializer.kt @@ -19,7 +19,7 @@ class CompilerArgumentsSerializerV5(override val argume val newInstance = arguments::class.java.getConstructor().newInstance() val flagArgumentsByName = CompilerArgumentsContentProspector.getFlagCompilerArgumentProperties(arguments::class) .mapNotNull { prop -> - prop.safeAs>() + prop.safeAs>() ?.takeIf { it.get(arguments) != it.get(newInstance) } ?.get(arguments) ?.let { prop.name to it }