Add equivalence check to TypeCacheKey
@@ -154,6 +154,10 @@ public class DDCachingPoolStrategy implements PoolStrategy {
return false;
}
+ if (this == obj) {
+ return true;
+ }
+
final TypeCacheKey that = (TypeCacheKey) obj;
if (hashCode != that.hashCode) {
