3 ms·
In most cases I'd use equals(a, b) in Java (with a static import of Objects.equals). It's both null safe and more readable.
by marginalia_nu 4y ago
In most cases I'd use equals(a, b) in Java (with a static import of Objects.equals). It's both null safe and more readable.