ComparingThisWithNull
this == null is always false, this != null is always true

Severity
ERROR

The problem

The boolean expression this != null always returns true and similarly this == null always returns false.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ComparingThisWithNull") to the enclosing element.