QuackatronHQ / Gigarepo

Avoid using equals to compare against null JAVA-E0051
Bug risk
Critical
1 occurrence in this check
a should not be compared to null using equals
2    void method() {
3        String a = "er";
4
5        if (a.equals(null)) {6            System.out.println("Some message goes here");
7        }
8    }