-
Task
-
Resolution: Done
-
Major
-
17.0.0.Beta2
-
None
-
None
Check emptiness with Collection.isEmpty() instead of size(). The time complexity of any isEmpty() method implementation should be O ( 1 ) whereas some implementations of size() can be O ( n ).
Refers to https://rules.sonarsource.com/java/RSPEC-1155