String Builder Optimization (ARCH8071)
Esta página aún no está disponible en tu idioma.
Key kotlin.performance.string-builder-optimization · Severity info · Category performance
Flags long chains of + string concatenation (five or more operands).
Incorrect
Section titled “Incorrect”val url = base + "/" + version + "/" + resource + "/" + idCorrect
Section titled “Correct”val url = "$base/$version/$resource/$id"Use a string template or buildString.