Skip to content

Commit 0726c24

Browse files
committed
GH-1125: Apply spotless formatting to union list readers
1 parent e43e6d7 commit 0726c24

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎vector/src/main/java/org/apache/arrow/vector/complex/impl/UnionLargeListReader.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ public boolean isSet() {
5454
@Override
5555
public void setPosition(int index) {
5656
int valueCount = vector.getValueCount();
57-
if (valueCount == 0
58-
&& index == 0
59-
&& vector.getOffsetBuffer().capacity() < 2L * OFFSET_WIDTH) {
57+
if (valueCount == 0 && index == 0 && vector.getOffsetBuffer().capacity() < 2L * OFFSET_WIDTH) {
6058
setEmptyPosition(index);
6159
return;
6260
}

‎vector/src/main/java/org/apache/arrow/vector/complex/impl/UnionListReader.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ public boolean isSet() {
5353
@Override
5454
public void setPosition(int index) {
5555
int valueCount = vector.getValueCount();
56-
if (valueCount == 0
57-
&& index == 0
58-
&& vector.getOffsetBuffer().capacity() < 2L * OFFSET_WIDTH) {
56+
if (valueCount == 0 && index == 0 && vector.getOffsetBuffer().capacity() < 2L * OFFSET_WIDTH) {
5957
setEmptyPosition(index);
6058
return;
6159
}

0 commit comments

Comments
 (0)