Skip to content

Restore testNulls methods to classes that we don't want PackageSanityTest to automatically test with NullPointerTester.#8551

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_947136389
Jul 13, 2026
Merged

Restore testNulls methods to classes that we don't want PackageSanityTest to automatically test with NullPointerTester.#8551
copybara-service[bot] merged 1 commit into
masterfrom
test_947136389

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Restore testNulls methods to classes that we don't want PackageSanityTest to automatically test with NullPointerTester.

This lets PackageSanityTest see which classes are "manually" tested for nullness—and then disable its automated nullness testing for those.

That means that this CL can also allow PackageSanityTest run its non-nullness-related testes on those classes. However, those tests are for serialization and for equals, so they probably don't matter for the "pure static" classes at stake here. Still, I think that I might like this pattern better for packages where it could matter, as in cl/939798064 for common.hash.

This CL undoes parts of ec9d2b5.

…ityTest` to automatically test with `NullPointerTester`.

This lets `PackageSanityTest` see which classes are "manually" tested for nullness—and then disable its automated nullness testing for those.

That means that this CL can also allow `PackageSanityTest` run its non-nullness-related testes on those classes. However, those tests are for serialization and for `equals`, so they probably don't matter for the "pure static" classes at stake here. Still, I think that I might like this pattern better for packages where it _could_ matter, as in cl/939798064 for `common.hash`.

This CL undoes parts of ec9d2b5.

PiperOrigin-RevId: 947204160
@copybara-service copybara-service Bot merged commit ae76e3c into master Jul 13, 2026
@copybara-service copybara-service Bot deleted the test_947136389 branch July 13, 2026 20:13
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