Skip to content

Prepare for initial J2KT support in common.hash.#8358

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_900934160
Apr 17, 2026
Merged

Prepare for initial J2KT support in common.hash.#8358
copybara-service[bot] merged 1 commit intomasterfrom
test_900934160

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

Prepare for initial J2KT support in common.hash.

...which is coming in cl/899584452.

This includes:

  • Add lots of @J2ktIncompatible annotations.
  • Add a missing @Nullable annotation to ExpectedHashCode.asLong in HashCodeTest.

Bonus: Migrate off deprecated Hashing.sha1 in HashCodeTest, which doesn't actually care about which specific hash function it uses. (OK, in testPadToLongWith1Byte, it cares that it has a hash function with a very short output, so it uses crc8.)
RELNOTES=n/a

...which is coming in cl/899584452.

This includes:
- Add lots of `@J2ktIncompatible` annotations.
- Add a missing `@Nullable` annotation to `ExpectedHashCode.asLong` in `HashCodeTest`.

Bonus: Migrate off deprecated `Hashing.sha1` in `HashCodeTest`, which doesn't actually care about which specific hash function it uses. (OK, in `testPadToLongWith1Byte`, it cares that it has a hash function with a very short output, so it uses `crc8`.)
RELNOTES=n/a
PiperOrigin-RevId: 901327552
@copybara-service copybara-service bot merged commit 8cfb330 into master Apr 17, 2026
@copybara-service copybara-service bot deleted the test_900934160 branch April 17, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant