We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6246e0a commit 0605639Copy full SHA for 0605639
formats/json/jvmMain/src/kotlinx/serialization/json/internal/CharsetReader.kt
@@ -20,7 +20,7 @@ internal class CharsetReader(
20
.onMalformedInput(CodingErrorAction.REPLACE)
21
.onUnmappableCharacter(CodingErrorAction.REPLACE)
22
byteBuffer = ByteBuffer.wrap(ByteArrayPool8k.take())
23
- byteBuffer.flip() // Make empty
+ (byteBuffer as Buffer).flip() // Make empty
24
}
25
26
@Suppress("NAME_SHADOWING")
@@ -92,7 +92,7 @@ internal class CharsetReader(
92
if (bytesRead < 0) return bytesRead
93
byteBuffer.position(position + bytesRead)
94
} finally {
95
- byteBuffer.flip()
+ (byteBuffer as Buffer).flip()
96
97
return byteBuffer.remaining()
98
0 commit comments