Skip to content

Commit

Permalink
put(out)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Feb 9, 2024
1 parent 1bcc7e9 commit 98740a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions java/core/src/test/org/apache/orc/impl/TestBrotli.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ public void testDirectDecompress() {
// write bytes to heap buffer.
assertTrue(brotliCodec.compress(in, out, null,
brotliCodec.getDefaultOptions()));
int position = out.position();
out.flip();
// copy heap buffer to direct buffer.
directOut.put(out.array());
directOut.put(out);
directOut.flip();
directOut.limit(position);

brotliCodec.decompress(directOut, directResult);

Expand Down

0 comments on commit 98740a7

Please sign in to comment.