[Java] Replace Table.UTF8_CHARSET with StandardCharsets.UTF_8 (#5696)

StandardCharsets.UTF_8 is already used in FlexBuffersBuilder.
This commit is contained in:
dreifachstein
2020-01-07 01:28:19 +08:00
committed by Wouter van Oortmerssen
parent 3b458f7a17
commit 35daaf83d3
5 changed files with 4 additions and 11 deletions

View File

@@ -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";