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

Use a more elegant way to judge #1021

Merged
merged 4 commits into from
Dec 18, 2017
Merged

Use a more elegant way to judge #1021

merged 4 commits into from
Dec 18, 2017

Conversation

holy12345
Copy link
Contributor

Use list.isEmpty () instead of list.size>0 to make it more elegant.

Use `list.isEmpty ()` instead of `list.size>0` to make it more elegant.
Use `isEmpty()` instead of `size>0` to judgment if the collection or map is empty because this is better readable.
@qiangdavidliu
Copy link
Contributor

Hi, we'd like to move away from using author tags as these can get confusing w.r.t. maintenance down the track. Otherwise, the PR looks good. Thanks.

Remove the author's label
Remove the author's label
@holy12345
Copy link
Contributor Author

@qiangdavidliu Okay, I removed it as you suggested. I apologize for the troubles caused to you. Thank you

@qiangdavidliu qiangdavidliu merged commit 5e259c5 into Netflix:master Dec 18, 2017
@qiangdavidliu
Copy link
Contributor

No problem, thanks for the PR.

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