'equals()' called on classes which don't override it
equals() calls on
StringBuffer and instances of
equals() method is not overridden in these classes, so it may return
false even when the contents of the two objects are the same. If the reference equality is intended, it's better to use
== to avoid confusion.
A quick-fix for
AtomicLong is available to transform into a comparison of contents. The quick-fix may change the semantics when one of the instances is null.
After the quick-fix is applied:
New in 2017.2
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3