Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix nullability annotation of ReferenceCountingMemoryManager::Allocate(). #748

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

copybara-service[bot]
Copy link

Fix nullability annotation of ReferenceCountingMemoryManager::Allocate().

The declaration didn't have an annotation; the definition is annotated as
returning nonnull, but it contains a return nullptr.

For the time being, I'm fixing this by removing the annotation on the definition
(thereby making it consistent with the declaration). Code owners may want to
follow up by marking both the definition and declaration as returning nullable
if desired.

@copybara-service copybara-service bot force-pushed the test_637786972 branch 4 times, most recently from a8fb17d to 4f87c84 Compare June 3, 2024 07:45
…te()`.

The declaration didn't have an annotation; the definition is annotated as
returning nonnull, but it contains a `return nullptr`.

For the time being, I'm fixing this by removing the annotation on the definition
(thereby making it consistent with the declaration). Code owners may want to
follow up by marking both the definition and declaration as returning nullable
if desired.

PiperOrigin-RevId: 639685981
@copybara-service copybara-service bot merged commit b10fc7f into master Jun 3, 2024
@copybara-service copybara-service bot deleted the test_637786972 branch June 3, 2024 08:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant