Skip to content

Comments

Replace Objects.hash with HashingUtils.hash#10637

Draft
dougqh wants to merge 1 commit intomasterfrom
dd/replace-objects-hash-with-hashing-utils
Draft

Replace Objects.hash with HashingUtils.hash#10637
dougqh wants to merge 1 commit intomasterfrom
dd/replace-objects-hash-with-hashing-utils

Conversation

@dougqh
Copy link
Contributor

@dougqh dougqh commented Feb 19, 2026

PR by Bits
View session in Datadog

Comment @DataDog to request changes

Feedback (especially what can be better) welcome in #code-gen-aka-bits-dev-feedback!


What Does This Do

Replaces all calls to java.util.Objects.hash() with datadog.trace.util.HashingUtils.hash() across the codebase.

Motivation

This change implements APMLP-1054, which standardizes hash code computation by using a custom HashingUtils.hash() method instead of the standard library's Objects.hash(). This provides better control over hashing behavior and consistency across the Datadog tracing agent.

Additional Notes

  • Updated 68 files across multiple modules including agent-bootstrap, agent-ci-visibility, agent-debugger, agent-crashtracking, agent-iast, agent-profiling, and internal-api
  • Maintained existing import statements for java.util.Objects where they are used for other purposes (e.g., Objects.equals())
  • Fixed import ordering in several files to follow conventions (static imports at the end)

Jira ticket: [APMLP-1054]

Co-authored-by: dougqh <dougqh@gmail.com>
@datadog-official
Copy link

[View session in Datadog]

Bits Dev status: ✅ Done

CI Auto-fix: Disabled | Enable

Comment @DataDog to request changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant