forked from BigfootDev/flatbuffers
avoiding even more NoSuchMethod exceptions (#6729)
* avoiding more NoSuchMethod exceptions refs #6657 * avoiding even more NoSuchMethod exceptions refs #6657
This commit is contained in:
@@ -49,9 +49,9 @@ public class ByteBufferUtil {
|
||||
* size prefix
|
||||
*/
|
||||
public static ByteBuffer removeSizePrefix(ByteBuffer bb) {
|
||||
ByteBuffer s = bb.duplicate();
|
||||
((Buffer) s).position(s.position() + SIZE_PREFIX_LENGTH);
|
||||
return s;
|
||||
Buffer s = ((Buffer) bb).duplicate();
|
||||
s.position(s.position() + SIZE_PREFIX_LENGTH);
|
||||
return (ByteBuffer) s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user