File tree Expand file tree Collapse file tree
zstd/src/test/java/io/github/dfa1/zstd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ void clearingPrefixWithNullCompressesPlainly() {
9898
9999 // When — set then clear the prefix before compressing
100100 cctx .refPrefix (prefix );
101- cctx .refPrefix (( MemorySegment ) null );
101+ cctx .refPrefix (null );
102102 long n = cctx .compress (frame , src );
103103
104104 // Then — a plain decoder with no prefix decodes it
@@ -226,9 +226,9 @@ void refPrefixReturnsTheSameContextForChaining() {
226226
227227 // When setting and then clearing a prefix on both contexts
228228 ZstdCompressContext cSet = cctx .refPrefix (prefix );
229- ZstdCompressContext cCleared = cctx .refPrefix (( MemorySegment ) null );
229+ ZstdCompressContext cCleared = cctx .refPrefix (null );
230230 ZstdDecompressContext dSet = dctx .refPrefix (prefix );
231- ZstdDecompressContext dCleared = dctx .refPrefix (( MemorySegment ) null );
231+ ZstdDecompressContext dCleared = dctx .refPrefix (null );
232232
233233 // Then every call returns the same instance, for chaining
234234 assertThat (cSet ).isSameAs (cctx );
You can’t perform that action at this time.
0 commit comments