sonar bug fix- Use the "equals" method if value comparison was intended