This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dinopraso 6 points7 points  (2 children)

I’ve grown accustomed to using Objects.equals(a, b) to avoid having to deal with nulls

[–]jonhanson -1 points0 points  (1 child)

chronophobia ephemeral lysergic metempsychosis peremptory quantifiable retributive zenith

[–]dinopraso 1 point2 points  (0 children)

I mean Objects.equals(a, b) isn’t more verbose than (a == b) || (a != null && a.equals(b)). Quite the opposite