Skip to content

Commit

Permalink
Remove JDK 9 method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Dec 29, 2021
1 parent 37b3de4 commit faebaba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public void testCompressAndDecompressQuery() throws IOException {
0x39, 0x66, 0x61, 0x32, 0x63, 0x64, 0x66, 0x27));

try (ClickHouseLZ4InputStream in = new ClickHouseLZ4InputStream(new ByteArrayInputStream(bas.toByteArray()))) {
String s = new String(in.readAllBytes(), StandardCharsets.UTF_8);
byte[] bytes = new byte[1024];
int len = in.read(bytes);
String s = new String(bytes, 0, len, StandardCharsets.UTF_8);
Assert.assertEquals(s, sql);
}
}
Expand Down

0 comments on commit faebaba

Please sign in to comment.