Skip to content

Commit 278f7a3

Browse files
committed
Fixing Configurations
Using calls to addToHash, since there isn't a big enough overload of hash
1 parent 5a48778 commit 278f7a3

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

internal-api/src/main/java/datadog/trace/api/civisibility/config/Configurations.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,17 @@ public boolean equals(Object o) {
9494

9595
@Override
9696
public int hashCode() {
97-
return HashingUtils.hash(
98-
osPlatform,
99-
osArchitecture,
100-
osVersion,
101-
runtimeName,
102-
runtimeVersion,
103-
runtimeVendor,
104-
runtimeArchitecture,
105-
testBundle,
106-
custom);
97+
int hash = 0;
98+
hash = HashingUtils.addToHash(hash, osPlatform);
99+
hash = HashingUtils.addToHash(hash, osArchitecture);
100+
hash = HashingUtils.addToHash(hash, osVersion);
101+
hash = HashingUtils.addToHash(hash, runtimeName);
102+
hash = HashingUtils.addToHash(hash, runtimeVersion);
103+
hash = HashingUtils.addToHash(hash, runtimeVendor);
104+
hash = HashingUtils.addToHash(hash, runtimeArchitecture);
105+
hash = HashingUtils.addToHash(hash, testBundle);
106+
hash = HashingUtils.addToHash(hash, custom);
107+
return hash;
107108
}
108109

109110
@Override

0 commit comments

Comments
 (0)