Skip to content

Conversation

@copybara-service
Copy link
Contributor

Document that Ints.checkedCast is the same as Math.toIntExact apart from the exception type.

We are not currently deprecating the method since the differing exception types mean that it may not be trivial to update uses.

Fixes #3105.

RELNOTES=n/a

…rt from the exception type.

We are not currently deprecating the method since the differing exception types mean that it may not be trivial to update uses.

Fixes #3105.

RELNOTES=n/a
PiperOrigin-RevId: 766184019
@copybara-service copybara-service bot merged commit f780e2e into master Jun 2, 2025
@copybara-service copybara-service bot deleted the test_766158541 branch June 2, 2025 14:34
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.

Ints.checkedCast vs. Math.toIntExact

1 participant