Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_982869904
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_982869904

Conversation

@copybara-service

Copy link
Copy Markdown

Remove null checks 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.

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: 982869904
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