Skip to content

Address more Error Prone warnings.#7696

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_729199656
Feb 21, 2025
Merged

Address more Error Prone warnings.#7696
copybara-service[bot] merged 1 commit intomasterfrom
test_729199656

Conversation

@copybara-service
Copy link
Copy Markdown
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
@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