Skip to content

HW#40

Open
mmgeorg wants to merge 2 commits intojava8-course:masterfrom
mmgeorg:master
Open

HW#40
mmgeorg wants to merge 2 commits intojava8-course:masterfrom
mmgeorg:master

Conversation

@mmgeorg
Copy link

@mmgeorg mmgeorg commented Apr 14, 2017

No description provided.

action.accept(array[startOuterInclusive][startInnerInclusive]);
startInnerInclusive ++;
return true;
} else if (startOuterInclusive < endOuterExclusive-1) {

Choose a reason for hiding this comment

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

You can avoid code duplication by moving this check to the beginning of the method.


return super.trySplit();
if (inner.hasCharacteristics(SUBSIZED)) {
return new ZipWithIndexDoubleSpliterator(currentIndex++, inner.trySplit());

Choose a reason for hiding this comment

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

Incorrect. Add tests with parallel stream and skip(2).

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.

2 participants