I have a question about the object X.equals(Y)
.
I use Sonar and it says that I have to move the ""
string literal on the left side of this string comparison: !date.equals("")
.
So I did that: !("").equals(date)
but I don't really know if it is right or not.