yegor256/qulice

Constants should be on the right side of comparison

Open

#716 geöffnet am 16. Feb. 2016

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (122 Forks)github user discovery
bughelp wantedpostponed

Repository-Metriken

Stars
 (320 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

When comparing variables with constants there are two possible approaches: if (null == variable) or if (variable == null)

Let's enforce the second one, so that constant value (string literal, null or number) is on the right side of comparison.

Contributor Guide