Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Next Operation #163

Closed
wants to merge 3 commits into from
Closed

Conversation

mairbek
Copy link
Contributor

@mairbek mairbek commented Mar 1, 2013

New implementation of #66.

@cloudbees-pull-request-builder

RxJava-pull-requests #2 SUCCESS
This pull request looks good

}

if (lastItem.isOnError()) {
throw Exceptions.propagate(lastItem.getException());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should iterator.hasNext() throw an exception or just when next() is called?

The Javadoc for hasNext suggests it will never throw an Exception so I think that we should only throw from Iterator.next().

@benjchristensen
Copy link
Member

@mairbek Take a look at the changes I made in #166 to make hasNext() not throw an exception (I also added another unit test while reviewing).

If you're happy with the changes I made I will merge that request which adds on top of your commits. Or if you want to do things differently and update this pull request that works as well (though please copy/paste in my new unit test).

@mairbek
Copy link
Contributor Author

mairbek commented Mar 2, 2013

yeah, I'll close this one.

@mairbek mairbek closed this Mar 2, 2013
@benjchristensen benjchristensen mentioned this pull request Mar 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants