Skip to content

Commit

Permalink
Fix SingletonIdentityCacheKey#equals
Browse files Browse the repository at this point in the history
It made caching with `SingletonIdentityCacheMapping` ineffective,
especially if the key is embedded within a compund key, as the singleton
key was never reported equal to any other key. There is only one user of
this class, and it doesn't rely on key equality, so the impact is
minimal.
  • Loading branch information
ksobolew authored and kokosing committed Oct 7, 2021
1 parent 3571021 commit bcb81f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public int hashCode()
@Override
public boolean equals(Object obj)
{
return obj instanceof SingletonIdentityCacheMapping;
return obj instanceof SingletonIdentityCacheKey;
}
}
}

0 comments on commit bcb81f2

Please sign in to comment.