avoiding even more NoSuchMethod exceptions (#6729)

* avoiding more NoSuchMethod exceptions

refs #6657

* avoiding even more NoSuchMethod exceptions

refs #6657
This commit is contained in:
Kamil Rojewski
2021-08-05 21:25:23 +02:00
committed by GitHub
parent a7b527d942
commit 6fb2c90d9e
4 changed files with 12 additions and 12 deletions

View File

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