summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Pinheiro <paulovictor.pinheiro@gmail.com>2020-06-08 18:35:51 +0200
committerGitHub <noreply@github.com>2020-06-08 09:35:51 -0700
commit17c1f35fa0f1b73744453b1718aa4f77fd4b3cc1 (patch)
treec4ad01c9c18dfd2f2012eac4779362d709acad5c
parent2eaf57778c9d66c35362767d61cbd596fb864844 (diff)
downloadflatbuffers-17c1f35fa0f1b73744453b1718aa4f77fd4b3cc1.tar.gz
flatbuffers-17c1f35fa0f1b73744453b1718aa4f77fd4b3cc1.tar.bz2
flatbuffers-17c1f35fa0f1b73744453b1718aa4f77fd4b3cc1.zip
[FlexBuffer][Java] ReadWriteBuf and ReadBuf interface public (#5948)
Those interfaces need to be public for use cases where the user pass a buffer to FlexBuffers class that is not a ByteBuffer. This will fix #5944
-rw-r--r--java/com/google/flatbuffers/ReadBuf.java2
-rw-r--r--java/com/google/flatbuffers/ReadWriteBuf.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/com/google/flatbuffers/ReadBuf.java b/java/com/google/flatbuffers/ReadBuf.java
index dbb4e733..751361fa 100644
--- a/java/com/google/flatbuffers/ReadBuf.java
+++ b/java/com/google/flatbuffers/ReadBuf.java
@@ -3,7 +3,7 @@ package com.google.flatbuffers;
/**
* Represent a chunk of data, where FlexBuffers will read from.
*/
-interface ReadBuf {
+public interface ReadBuf {
/**
* Read boolean from data. Booleans as stored as single byte
diff --git a/java/com/google/flatbuffers/ReadWriteBuf.java b/java/com/google/flatbuffers/ReadWriteBuf.java
index cae186e2..6eb43bd5 100644
--- a/java/com/google/flatbuffers/ReadWriteBuf.java
+++ b/java/com/google/flatbuffers/ReadWriteBuf.java
@@ -4,7 +4,7 @@ package com.google.flatbuffers;
* Interface to represent a read-write buffer. This interface will be used to access and write
* FlexBuffers message.
*/
-interface ReadWriteBuf extends ReadBuf {
+public interface ReadWriteBuf extends ReadBuf {
/**
* Clears (resets) the buffer so that it can be reused. Write position will be set to the