diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/LargeListViewVector.java b/java/vector/src/main/java/org/apache/arrow/vector/complex/LargeListViewVector.java index 232236973943a..dbdc317b8c26a 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/complex/LargeListViewVector.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/LargeListViewVector.java @@ -509,9 +509,7 @@ public void splitAndTransfer(int startIndex, int length) { if (maxOffsetAndSizeSum < offsetValue + sizeValue) { maxOffsetAndSizeSum = offsetValue + sizeValue; } - if (minOffsetValue == -1 || minOffsetValue > offsetValue) { - minOffsetValue = offsetValue; - } + minOffsetValue = Math.min(minOffsetValue, offsetValue); } /* splitAndTransfer the offset buffer */