@@ -161,9 +161,9 @@ public void testWriteV3(String codec, String codecParam, DataType dataType) thro
161161 builder = builder .withCodecs (c -> c .withGzip (Integer .parseInt (codecParam )));
162162 break ;
163163 case "zstd" :
164- int clevel_zstd = Integer .parseInt (codecParam .split ("_" )[0 ]);
164+ int level_zstd = Integer .parseInt (codecParam .split ("_" )[0 ]);
165165 boolean checksum = Boolean .parseBoolean (codecParam .split ("_" )[1 ]);
166- builder = builder .withCodecs (c -> c .withZstd (clevel_zstd , checksum ));
166+ builder = builder .withCodecs (c -> c .withZstd (level_zstd , checksum ));
167167 break ;
168168 case "bytes" :
169169 builder = builder .withCodecs (c -> c .withBytes (codecParam ));
@@ -270,13 +270,13 @@ public void testWriteV2(String compressor, String compressorParam, dev.zarr.zarr
270270
271271 @ CsvSource ({"0,true" , "0,false" , "5, true" , "10, false" })
272272 @ ParameterizedTest
273- public void testZstdLibrary (int clevel , boolean checksumFlag ) throws IOException , InterruptedException {
273+ public void testZstdLibrary (int level , boolean checksumFlag ) throws IOException , InterruptedException {
274274 //compress using ZstdCompressCtx
275275 int number = 123456 ;
276276 byte [] src = ByteBuffer .allocate (4 ).putInt (number ).array ();
277277 byte [] compressed ;
278278 try (ZstdCompressCtx ctx = new ZstdCompressCtx ()) {
279- ctx .setLevel (clevel );
279+ ctx .setLevel (level );
280280 ctx .setChecksum (checksumFlag );
281281 compressed = ctx .compress (src );
282282 }
@@ -286,7 +286,7 @@ public void testZstdLibrary(int clevel, boolean checksumFlag) throws IOException
286286 Assertions .assertEquals (number , ByteBuffer .wrap (decompressed ).getInt ());
287287
288288 //write compressed to file
289- String compressedDataPath = TESTOUTPUT .resolve ("compressed" + clevel + checksumFlag + ".bin" ).toString ();
289+ String compressedDataPath = TESTOUTPUT .resolve ("compressed" + level + checksumFlag + ".bin" ).toString ();
290290 try (FileOutputStream fos = new FileOutputStream (compressedDataPath )) {
291291 fos .write (compressed );
292292 }
0 commit comments