Skip to content

Remove null check on the result of Class.forName. - #2506

Merged
copybara-service[bot] merged 1 commit into
mainfrom
piper_982869904
Sep 28, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
piper_982869904

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Remove null check on the result of Class.forName.

The method never returns null; it either fails or returns the Class.

As a result, I am making calls like this into errors in google/error-prone#6093.

@copybara-service copybara-service Bot changed the title Remove null checks on the result of Class.forName. Remove null check on the result of Class.forName. Sep 28, 2026
The method never returns `null`; it either fails or returns the `Class`.

As a result, I am making calls like this into errors in google/error-prone#6093.

PiperOrigin-RevId: 989783886
@copybara-service
copybara-service Bot merged commit 2c17151 into main Sep 28, 2026
6 checks passed
@copybara-service
copybara-service Bot deleted the piper_982869904 branch September 28, 2026 19:42
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