File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/jdbc Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 11package datadog .trace .bootstrap .instrumentation .jdbc ;
22
3+ import datadog .trace .util .HashingUtils ;
34import java .util .Objects ;
45
56public final class DBInfo {
@@ -256,17 +257,15 @@ public boolean equals(Object o) {
256257
257258 @ Override
258259 public int hashCode () {
259- return Objects .hash (
260- type ,
261- subtype ,
262- fullPropagationSupport ,
263- url ,
264- user ,
265- instance ,
266- db ,
267- host ,
268- port ,
269- warehouse ,
270- schema );
260+ int hash = HashingUtils .hash (type , subtype );
261+ hash = HashingUtils .addToHash (hash , fullPropagationSupport );
262+ hash = HashingUtils .addToHash (hash , url );
263+ hash = HashingUtils .addToHash (hash , user );
264+ hash = HashingUtils .addToHash (hash , instance );
265+ hash = HashingUtils .addToHash (hash , db );
266+ hash = HashingUtils .addToHash (hash , host );
267+ hash = HashingUtils .addToHash (hash , port );
268+ hash = HashingUtils .addToHash (hash , warehouse );
269+ return HashingUtils .addToHash (hash , schema );
271270 }
272271}
You can’t perform that action at this time.
0 commit comments