[FIR] Inherit FIR with parameter renderer from the old parameter renderer

This commit is contained in:
Mikhail Glukhikh
2020-11-17 17:16:43 +03:00
parent 3dec848c03
commit c7ae176ae4
3 changed files with 7 additions and 15 deletions
@@ -23,8 +23,8 @@ import java.text.MessageFormat
abstract class AbstractDiagnosticWithParametersRenderer<D : Diagnostic> protected constructor(message: String) : DiagnosticRenderer<D> {
private val messageFormat = MessageFormat(message)
override fun render(obj: D): String {
return messageFormat.format(renderParameters(obj))
override fun render(diagnostic: D): String {
return messageFormat.format(renderParameters(diagnostic))
}
abstract fun renderParameters(diagnostic: D): Array<out Any>