Suggest using .equals
instead of Objects.equals
when applicable
#663
Labels
enhancement
New feature or request
low-priority
new-lint
A new lint.
unnecessary-complexity
unresolved
Some decisions have not been made yet or it is not obvious what should be detected.
What it does
When the left-hand side or right-hand side is guaranteed to not be
null
, it is more readable to userhs.equals(lhs)
orlhs.equals(rhs)
thanObjects.equals(lhs, rhs)
.Unresolved: Is this more readable or just pedantic?
Lint Name
No response
Category
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: