SONARJAVA-497 Object should not be compared with equals