Skip to content

Commit

Permalink
Convert to Java 22 APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Mar 21, 2024
1 parent 812770c commit 0236ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
7 changes: 1 addition & 6 deletions src/main/java/io/airlift/compress/lzo/LzoHadoopStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@
import java.io.OutputStream;
import java.util.List;

import static java.util.Arrays.asList;
import static java.util.Collections.unmodifiableList;

public class LzoHadoopStreams
implements HadoopStreams
{
private static final List<String> HADOOP_CODEC_NAMES = unmodifiableList(asList(
"org.apache.hadoop.io.compress.LzoCodec",
"com.hadoop.compression.lzo.LzoCodec"));
private static final List<String> HADOOP_CODEC_NAMES = List.of("org.apache.hadoop.io.compress.LzoCodec", "com.hadoop.compression.lzo.LzoCodec");
private static final int DEFAULT_OUTPUT_BUFFER_SIZE = 256 * 1024;

private final int bufferSize;
Expand Down
14 changes: 1 addition & 13 deletions src/test/java/io/airlift/compress/zstd/TestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,5 @@ private static void testPut24BitLittleEndian(TestData testData)
assertThat(outputBase).isEqualTo(testData.bytes);
}

private static class TestData
{
final byte[] bytes;
final int offset;
final int value;

public TestData(byte[] bytes, int offset, int value)
{
this.bytes = bytes;
this.offset = offset;
this.value = value;
}
}
private record TestData(byte[] bytes, int offset, int value) {}
}

0 comments on commit 0236ff0

Please sign in to comment.