summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authordreifachstein <dreifachstein@users.noreply.github.com>2020-01-07 01:28:19 +0800
committerWouter van Oortmerssen <aardappel@gmail.com>2020-01-06 09:28:19 -0800
commit35daaf83d334156749bb9f9b43ce96a1c86d529a (patch)
tree5aeb7f546dda749af1763d4c345ce6ad83993816 /java
parent3b458f7a170154ed4c4a3a2a9f6116fb2d415ad5 (diff)
downloadflatbuffers-35daaf83d334156749bb9f9b43ce96a1c86d529a.tar.gz
flatbuffers-35daaf83d334156749bb9f9b43ce96a1c86d529a.tar.bz2
flatbuffers-35daaf83d334156749bb9f9b43ce96a1c86d529a.zip
[Java] Replace Table.UTF8_CHARSET with StandardCharsets.UTF_8 (#5696)
StandardCharsets.UTF_8 is already used in FlexBuffersBuilder.
Diffstat (limited to 'java')
-rw-r--r--java/com/google/flatbuffers/Table.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/java/com/google/flatbuffers/Table.java b/java/com/google/flatbuffers/Table.java
index 463aeb8d..7f416396 100644
--- a/java/com/google/flatbuffers/Table.java
+++ b/java/com/google/flatbuffers/Table.java
@@ -19,7 +19,6 @@ package com.google.flatbuffers;
import static com.google.flatbuffers.Constants.*;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
-import java.nio.charset.Charset;
/// @cond FLATBUFFERS_INTERNAL
@@ -27,12 +26,6 @@ import java.nio.charset.Charset;
* All tables in the generated code derive from this class, and add their own accessors.
*/
public class Table {
- public final static ThreadLocal<Charset> UTF8_CHARSET = new ThreadLocal<Charset>() {
- @Override
- protected Charset initialValue() {
- return Charset.forName("UTF-8");
- }
- };
/** Used to hold the position of the `bb` buffer. */
protected int bb_pos;
/** The underlying ByteBuffer to hold the data of the Table. */