FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix WordCounterSpliterator.tryAdvance by uprem · Pull Request #10 · java8/Java8InAction · GitHub

Fix WordCounterSpliterator.tryAdvance - #10

Open
uprem wants to merge 1 commit into
java8:masterfrom
uprem:patch-1
Open

Fix WordCounterSpliterator.tryAdvance#10
uprem wants to merge 1 commit into
java8:masterfrom
uprem:patch-1

Conversation

uprem commented Sep 10, 2016

Copy link
Copy Markdown

fixes:

  1. when initial string is empty, prevents throwing StringIndexOutOfBoundsException
  2. the last valid iteration return true. old code returns false for the last character which breaks tryAdvance() specs

fixes:
1. when initial string is empty, prevents throwing StringIndexOutOfBoundsException
2. the last valid iteration return true. old code returns false for the last character which breaks tryAdvance() specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL