While solving sonarQube issue i face the below warning,does any one tell me how to overcome this warning
Method:-
@Override public boolean equals
Well, you can replace:
if (divisionId != other.divisionId) return false; return true;
with the equivalent:
return divisionId == other.divisionId;
This will return false if divisionId != other.divisionId and true otherwise.
false
divisionId != other.divisionId
true