We have a huge domain model in Java and something is really fucked up with our equals/hashcode implementations and know body can track it down.

I have suggested Lombok/Groovy several times but they didn't listen.

Anyways it is so fucked up, that map.contains(foo) returns false, although it is part of the map.

So we wrote something like this:

for (Entity e: map.keyset) {
if (foo.equals(e) {
return true;

  • 0
    Why even have a code base at all if it's always true???
Add Comment