Skip to content

Commit

Permalink
Fix JDK8 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Nov 29, 2021
1 parent 05e89d8 commit 1b0714a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testVarInt() {
buffer = ByteBuffer.allocate(8);
Utils.writeVarInt(i, buffer);
Utils.writeVarInt(0 - i, buffer);
buffer = (ByteBuffer) ((Buffer) buffer.flip());
buffer = (ByteBuffer) ((Buffer) buffer).flip();
assertEquals(Utils.readVarInt(buffer), i);
assertEquals(Utils.readVarInt(buffer), 0 - i);
}
Expand Down

0 comments on commit 1b0714a

Please sign in to comment.