JPS mappings for incremental compilation refactoring: properly compare KmType objects to avoid node diff false positives

GitOrigin-RevId: cb22cae9149002e2a68d678b474cbb2d5799f9dd
This commit is contained in:
Eugene Zhuravlev
2024-05-17 12:53:21 +02:00
committed by intellij-monorepo-bot
parent 1f64e37ecb
commit f5cabbf706

View File

@@ -389,7 +389,7 @@ public final class KotlinMeta implements JvmMetadata<KotlinMeta, KotlinMeta.Diff
}
public boolean underlyingTypeChanged() {
return !Objects.equals(past.getUnderlyingType(), now.getUnderlyingType());
return !kmTypesEqual(past.getUnderlyingType(), now.getUnderlyingType());
}
}
@@ -460,7 +460,7 @@ public final class KotlinMeta implements JvmMetadata<KotlinMeta, KotlinMeta.Diff
}
public boolean nullabilityChanged() {
return !Objects.equals(past.getReturnType(), now.getReturnType());
return Attributes.isNullable(past.getReturnType()) != Attributes.isNullable(now.getReturnType());
}
public boolean becameNullable() {