Skip to content

thread pool of 1 if prefixes is 0, avoid IllegalArgument - #743

Merged
tpetr merged 3 commits into
masterfrom
prefixes
Nov 3, 2015
Merged

thread pool of 1 if prefixes is 0, avoid IllegalArgument#743
tpetr merged 3 commits into
masterfrom
prefixes

Conversation

@ssalinas

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

idk why i suggested that route -- can't we just short-circuit to Collections.emptyList() if there are no prefixes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you and your logical ideas... 😜 I'll update

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isEmpty() is preferable I believe.

@tpetr tpetr added this to the 0.4.6 milestone Nov 3, 2015
@tpetr tpetr added the hs_stable label Nov 3, 2015
tpetr pushed a commit that referenced this pull request Nov 3, 2015
thread pool of 1 if prefixes is 0, avoid IllegalArgument
@tpetr
tpetr merged commit 4774163 into master Nov 3, 2015
@tpetr tpetr removed hs_qa labels Nov 3, 2015
@tpetr
tpetr deleted the prefixes branch November 3, 2015 16:07
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