From 20b29e7775aa0446bebef4bc46ee560fe0756d52 Mon Sep 17 00:00:00 2001 From: Alexey Belkov Date: Sun, 11 Sep 2022 14:58:24 +0400 Subject: [PATCH] [kotlin] Invoke ReplaceWithStringBuilderAppendRangeInspection on whole project ^KTIJ-22712 GitOrigin-RevId: 31a23597e64c59f4a1faf82873581e5a94143432 --- .../util-ex/src/com/intellij/credentialStore/OneTimeString.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt b/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt index 4eb02bd67e3d..872af1487988 100644 --- a/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt +++ b/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt @@ -90,7 +90,7 @@ class OneTimeString @JvmOverloads constructor(value: CharArray, offset: Int = 0, fun appendTo(builder: StringBuilder) { consume(false) - builder.append(myChars, myStart, length) + builder.appendRange(myChars, myStart, myStart + length) } }