Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address more Error Prone warnings. #7696

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Address more Error Prone warnings. #7696

merged 1 commit into from
Feb 21, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Address more Error Prone warnings.

RELNOTES=n/a

- mostly https://errorprone.info/bugpattern/UnnecessaryParentheses (by removing the parentheses)
- in `HostAndPort`, https://errorprone.info/bugpattern/UnusedException (by using `tryParse` instead of a `try`-`catch` approach, conveniently also getting the behavior we want for `+` and for non-ASCII digits for free)
- in `IntMath`, https://errorprone.info/bugpattern/NonFinalStaticField (by making it `final` :))

RELNOTES=n/a
PiperOrigin-RevId: 729533506
@copybara-service copybara-service bot merged commit 2076b8e into master Feb 21, 2025
1 check passed
@copybara-service copybara-service bot deleted the test_729199656 branch February 21, 2025 16:12
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