Skip to content

Commit be1e529

Browse files
committed
Replace deprecated native StringBuilder.deleteCharAt
1 parent 02ad1bf commit be1e529

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/nativeMain/src/Instant.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ public actual class Instant internal constructor(actual val epochSeconds: Long,
171171
if (hi < 0) {
172172
when {
173173
ldt.year == -10000 -> {
174-
buf.deleteCharAt(pos)
175-
buf.deleteCharAt(pos)
174+
buf.deleteAt(pos)
175+
buf.deleteAt(pos)
176176
buf.insert(pos, (hi - 1).toString())
177177
}
178178
lo == 0L -> {

core/nativeMain/src/LocalDate.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ public actual class LocalDate actual constructor(actual val year: Int, actual va
224224
val buf = StringBuilder(10)
225225
if (absYear < 1000) {
226226
if (yearValue < 0) {
227-
buf.append(yearValue - 10000).deleteCharAt(1)
227+
buf.append(yearValue - 10000).deleteAt(1)
228228
} else {
229-
buf.append(yearValue + 10000).deleteCharAt(0)
229+
buf.append(yearValue + 10000).deleteAt(0)
230230
}
231231
} else {
232232
if (yearValue > 9999) {

0 commit comments

Comments
 (0)