Java: Removed unused duplicate of bytebuffer from "Table#__string" method. (#5211)

This commit is contained in:
Kulikov Alexey
2019-02-26 05:28:13 +07:00
committed by Wouter van Oortmerssen
parent 1d60824d56
commit dc61512f20

View File

@@ -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);
}