Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.config;

import datadog.trace.util.HashingUtils;
import java.util.Map;
import java.util.Objects;

Expand Down Expand Up @@ -93,16 +94,17 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(
osPlatform,
osArchitecture,
osVersion,
runtimeName,
runtimeVersion,
runtimeVendor,
runtimeArchitecture,
testBundle,
custom);
int hash = 0;
hash = HashingUtils.addToHash(hash, osPlatform);
hash = HashingUtils.addToHash(hash, osArchitecture);
hash = HashingUtils.addToHash(hash, osVersion);
hash = HashingUtils.addToHash(hash, runtimeName);
hash = HashingUtils.addToHash(hash, runtimeVersion);
hash = HashingUtils.addToHash(hash, runtimeVendor);
hash = HashingUtils.addToHash(hash, runtimeArchitecture);
hash = HashingUtils.addToHash(hash, testBundle);
hash = HashingUtils.addToHash(hash, custom);
return hash;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.config;

import datadog.trace.util.HashingUtils;
import java.util.Objects;

/**
Expand Down Expand Up @@ -37,7 +38,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(suite, name);
return HashingUtils.hash(suite, name);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.config;

import datadog.trace.util.HashingUtils;
import java.util.Objects;
import javax.annotation.Nullable;

Expand Down Expand Up @@ -55,7 +56,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(fqn, parameters);
return HashingUtils.hash(fqn, parameters);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.config;

import datadog.trace.util.HashingUtils;
import java.lang.reflect.Method;
import java.util.Objects;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -67,7 +68,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(testClass, testMethod, testMethodName);
return HashingUtils.hash(testClass, testMethod, testMethodName);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.events;

import datadog.trace.util.HashingUtils;
import java.util.Objects;
import javax.annotation.Nullable;

Expand Down Expand Up @@ -46,7 +47,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(testSuiteName, testClass, testName, testParameters, testQualifier);
return HashingUtils.hash(testSuiteName, testClass, testName, testParameters, testQualifier);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.api.civisibility.events;

import datadog.trace.util.HashingUtils;
import java.util.Objects;

public final class TestSuiteDescriptor {
Expand All @@ -26,7 +27,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(testSuiteName, testClass);
return HashingUtils.hash(testSuiteName, testClass);
}

@Override
Expand Down
Loading