[FIR] Update diagnostic messages

This commit is contained in:
Kirill Rakhman
2023-05-24 16:30:54 +02:00
committed by Space Team
parent 6cd9b5ec98
commit de1c92a32f
10 changed files with 774 additions and 774 deletions
@@ -115,7 +115,8 @@ class KtDiagnosticFactoryToRendererMap(val name: String) {
private fun KtDiagnosticFactoryForDeprecation<*>.warningMessage(errorMessage: String): String {
return buildString {
append(errorMessage)
append(". This will become an error")
if (!errorMessage.endsWith(".")) append(".")
append(" This will become an error")
val sinceVersion = deprecatingFeature.sinceVersion
if (sinceVersion != null) {
append(" in Kotlin ")
@@ -123,6 +124,7 @@ class KtDiagnosticFactoryToRendererMap(val name: String) {
} else {
append(" in a future release")
}
append(".")
}
}
}