Skip to content

Commit

Permalink
switching to Collections from Guava for empty iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Darwin committed Jul 20, 2017
1 parent c194e48 commit 568737d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.arrow.vector;

import java.util.Collections;
import java.util.Iterator;

import com.google.flatbuffers.FlatBufferBuilder;
Expand Down Expand Up @@ -98,9 +99,7 @@ public void reset() {}
}

@Override
public Iterator<ValueVector> iterator() {
return Iterators.emptyIterator();
}
public Iterator<ValueVector> iterator() { return Collections.emptyIterator(); }

public static boolean checkBufRefs(final ValueVector vv) {
for(final ArrowBuf buffer : vv.getBuffers(false)) {
Expand Down

0 comments on commit 568737d

Please sign in to comment.