Skip to content

Commit

Permalink
Set origin iterator last one if all iterators of extendable iterator …
Browse files Browse the repository at this point in the history
…are empty

implemented: #360

Change-Id: I5586ea3626816c085af788830917759f653ed0c4
  • Loading branch information
zhoney authored and Linary committed Feb 28, 2019
1 parent 5f6012c commit 5bac575
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.baidu.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
<version>1.5.6</version>
<version>1.5.7</version>

<name>hugegraph-common</name>
<url>https://github.com/hugegraph/hugegraph-common</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ protected boolean fetch() {
Iterator<T> first = null;
while ((first = this.itors.peekFirst()) != null && !first.hasNext()) {
if (first == this.itors.peekLast() && this.itors.size() == 1) {
this.currentIterator = first;
// The last one
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ public class CommonVersion {

// The second parameter of Version.of() is for all-in-one JAR
public static final Version VERSION = Version.of(CommonVersion.class,
"1.5.6");
"1.5.7");
}

0 comments on commit 5bac575

Please sign in to comment.