mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Java: Removed unused duplicate of bytebuffer from "Table#__string" method. (#5211)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
1d60824d56
commit
dc61512f20
@@ -89,8 +89,7 @@ public class Table {
|
||||
*/
|
||||
protected String __string(int offset) {
|
||||
offset += bb.getInt(offset);
|
||||
ByteBuffer src = bb.duplicate().order(ByteOrder.LITTLE_ENDIAN);
|
||||
int length = src.getInt(offset);
|
||||
int length = bb.getInt(offset);
|
||||
return utf8.decodeUtf8(bb, offset + SIZEOF_INT, length);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user