File tree Expand file tree Collapse file tree
dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/jdbc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,7 +257,9 @@ public boolean equals(Object o) {
257257
258258 @ Override
259259 public int hashCode () {
260- int hash = HashingUtils .hash (type , subtype );
260+ int hash = 0 ;
261+ hash = HashingUtils .addToHash (hash , type );
262+ hash = HashingUtils .addToHash (hash , subtype );
261263 hash = HashingUtils .addToHash (hash , fullPropagationSupport );
262264 hash = HashingUtils .addToHash (hash , url );
263265 hash = HashingUtils .addToHash (hash , user );
@@ -266,6 +268,7 @@ public int hashCode() {
266268 hash = HashingUtils .addToHash (hash , host );
267269 hash = HashingUtils .addToHash (hash , port );
268270 hash = HashingUtils .addToHash (hash , warehouse );
269- return HashingUtils .addToHash (hash , schema );
271+ hash = HashingUtils .addToHash (hash , schema );
272+ return hash ;
270273 }
271274}
You can’t perform that action at this time.
0 commit comments