eqeq
$X == $X
or $X != $X
is always true. (Unless the value compared is a float or double). To test if $X
is not-a-number, use Double.isNaN($X)
.
hardcoded-conditional
This if statement will always have the same behavior and is therefore unnecessary.
no-string-eqeq
Strings should not be compared with ’==’. This is a reference comparison operator. Use ‘.equals()’ instead.
assignment-comparison
The value of $X
is being ignored and will be used in the conditional test
eqeq
$X == $X
or $X != $X
is always true. (Unless the value compared is a float or double). To test if $X
is not-a-number, use Double.isNaN($X)
.
hardcoded-conditional
This if statement will always have the same behavior and is therefore unnecessary.
no-string-eqeq
Strings should not be compared with ’==’. This is a reference comparison operator. Use ‘.equals()’ instead.
assignment-comparison
The value of $X
is being ignored and will be used in the conditional test