diff --git a/java/vector/src/test/java/org/apache/arrow/vector/TestVarCharViewVector.java b/java/vector/src/test/java/org/apache/arrow/vector/TestVarCharViewVector.java index fee395da0ccb5..1c55d3fafd75f 100644 --- a/java/vector/src/test/java/org/apache/arrow/vector/TestVarCharViewVector.java +++ b/java/vector/src/test/java/org/apache/arrow/vector/TestVarCharViewVector.java @@ -96,7 +96,7 @@ public void testInlineAllocation() { assert views.size() == 3; assert dataBuffers.isEmpty(); - ViewBuffer view0 = views.getFirst(); + ViewBuffer view0 = views.get(0); assert view0 instanceof InlineValueBuffer; validateInlineValueBuffer(STR0, (InlineValueBuffer) view0); @@ -165,7 +165,7 @@ public void testReferenceAllocationInSameBuffer() { assert views.size() == 3; assert dataBuffers.size() == 1; - ViewBuffer view0 = views.getFirst(); + ViewBuffer view0 = views.get(0); assert view0 instanceof InlineValueBuffer; validateInlineValueBuffer(STR1, (InlineValueBuffer) view0);