Skip to content

Commit

Permalink
use array util
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck committed Oct 15, 2023
1 parent bb2dff6 commit 5d64655
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/org/apache/iceberg/BaseFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import org.apache.iceberg.avro.AvroSchemaUtil;
import org.apache.iceberg.relocated.com.google.common.base.MoreObjects;
import org.apache.iceberg.relocated.com.google.common.collect.Lists;
import org.apache.iceberg.relocated.com.google.common.primitives.Ints;
import org.apache.iceberg.relocated.com.google.common.primitives.Longs;
import org.apache.iceberg.types.Type;
import org.apache.iceberg.types.Types;
import org.apache.iceberg.util.ArrayUtil;
Expand Down Expand Up @@ -462,7 +460,7 @@ public ByteBuffer keyMetadata() {

@Override
public List<Long> splitOffsets() {
return splitOffsets == null ? null : Longs.asList(splitOffsets);
return ArrayUtil.toUnmodifiableLongList(splitOffsets);
}

long[] splitOffsetArray() {
Expand All @@ -471,7 +469,7 @@ long[] splitOffsetArray() {

@Override
public List<Integer> equalityFieldIds() {
return equalityIds == null ? null : Ints.asList(equalityIds);
return ArrayUtil.toIntList(equalityIds);
}

@Override
Expand Down

0 comments on commit 5d64655

Please sign in to comment.