Add proper tests for fluent-interface pattern and fixed a little bug
This commit is contained in:
@@ -215,7 +215,7 @@ public class LazyFluentIterable<TYPE> implements FluentIterable<TYPE> {
|
||||
return new DecoratingIterator<TYPE>(iterable.iterator()) {
|
||||
@Override
|
||||
public TYPE computeNext() {
|
||||
return fromIterator.next();
|
||||
return fromIterator.hasNext() ? fromIterator.next() : null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user