You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've submitted PR #15898 to address this issue. I would greatly appreciate if you could review the changes and provide your feedback.
Please take a look at the implementation and let me know if you have any concerns or if there are any reasons why this change might not be feasible.
Expected Behavior
.isEmpty()
method instead of.size() == 0
.Current Behavior
.size() == 0
to check if Lists and Maps are empty.Context
.size() == 0
checks, but this doesn't align with standard Java conventions.Proposed Changes
.size() == 0
with.isEmpty()
for Collections (Lists, Maps, etc.).Reasons for the proposed change:
.isEmpty()
more clearly expresses the intent of checking whether a collection is empty.isEmpty()
is the standard method for checking if a collection is empty.Questions
size() == 0
instead ofisEmpty()
in our current codebase?The text was updated successfully, but these errors were encountered: