aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-09-06 00:58:43 +0200
committerSven Gothel <[email protected]>2022-09-06 00:58:43 +0200
commit7fbe91bc0b847e626301121b23f9c85588718616 (patch)
tree9ec2c1253f134ba62b2c237cd2f5efedfa186258 /test
parentfc1031dd188c7251f50e751eb1ce53a3294b5170 (diff)
TestBaseCodec: Remove Java13 API usage, use plain Java8 relative ByteBuffer.get(..)
Diffstat (limited to 'test')
-rw-r--r--test/java/jau/test/util/TestBaseCodec.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/java/jau/test/util/TestBaseCodec.java b/test/java/jau/test/util/TestBaseCodec.java
index 0549d72..ca164f3 100644
--- a/test/java/jau/test/util/TestBaseCodec.java
+++ b/test/java/jau/test/util/TestBaseCodec.java
@@ -228,7 +228,9 @@ public class TestBaseCodec {
private static byte[] to_array(final ByteBuffer bb) {
final byte[] res = new byte[bb.remaining()];
- bb.get(bb.position(), res, 0, res.length);
+ final int pos = bb.position();
+ bb.get(res, 0, res.length);
+ bb.position(pos);
return res;
}
private static void testBinaryBase64() {