mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-19 01:03:06 +00:00
[Java] Replace Table.UTF8_CHARSET with StandardCharsets.UTF_8 (#5696)
StandardCharsets.UTF_8 is already used in FlexBuffersBuilder.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
3b458f7a17
commit
35daaf83d3
@@ -522,7 +522,7 @@ class KotlinGenerator : public BaseGenerator {
|
||||
if (base_type == BASE_TYPE_STRING) {
|
||||
writer +=
|
||||
"val byteKey = key."
|
||||
"toByteArray(Table.UTF8_CHARSET.get()!!)";
|
||||
"toByteArray(java.nio.charset.StandardCharsets.UTF_8)";
|
||||
}
|
||||
writer += "var span = bb.getInt(vectorLocation - 4)";
|
||||
writer += "var start = 0";
|
||||
|
||||
Reference in New Issue
Block a user