Actions
Bug #16524
closedwe should not use .size to check if a collection is empty
Status:
Released
Priority:
N/A
Assignee:
Category:
Performance and scalability
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
see https://pavelfatin.com/scala-collections-tips-and-tricks/
.size for to iterate over the whole collection/list, so we should use isEmpty or seq.lengthCompare(n)
Actions