Skip to content

Conversation

kapinuss
Copy link
Contributor

available.size() < 0 is impossible, so it has sense only in case available.size() = 0, and it means that collection is empty, besides function isEmpty() is faster, than checking of the size.

@iluwatar iluwatar merged commit 31f4b15 into iluwatar:master Apr 16, 2017
@iluwatar
Copy link
Owner

Thanks @kapinuss 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants