Commit dc61512f authored by Kulikov Alexey's avatar Kulikov Alexey Committed by Wouter van Oortmerssen

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

parent 1d60824d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment