[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

@@ -1134,7 +1134,7 @@ class JavaGenerator : public BaseGenerator {
code += " key, ByteBuffer bb) {\n";
if (key_field->value.type.base_type == BASE_TYPE_STRING) {
code += " byte[] byteKey = ";
code += "key.getBytes(Table.UTF8_CHARSET.get());\n";
code += "key.getBytes(java.nio.charset.StandardCharsets.UTF_8);\n";
}
code += " int span = ";
code += "bb.getInt(vectorLocation - 4);\n";