Add equivalence check to TypeCacheKey
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/DDCachingPoolStrategy.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/DDCachingPoolStrategy.java
@@ -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) {

Add equivalence check to TypeCacheKey