Aller au contenu

String Builder Optimization (ARCH8071)

Ce contenu n’est pas encore disponible dans votre langue.

Key kotlin.performance.string-builder-optimization · Severity info · Category performance

Flags long chains of + string concatenation (five or more operands).

val url = base + "/" + version + "/" + resource + "/" + id
val url = "$base/$version/$resource/$id"

Use a string template or buildString.