Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a few missing @Nullables in instrumentation-api #3806

Merged

Conversation

mateuszrzeszutek
Copy link
Member

A little bit less warnings from IntelliJ

@@ -68,6 +69,7 @@ public static void debugContextLeakIfEnabled() {
}
}

@Nullable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to return an empty list instead of null?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but it'd result in a bit more code being added - and since it's a private, internal utility method I think it's fine to keep @Nullable here.

@mateuszrzeszutek mateuszrzeszutek merged commit beab394 into open-telemetry:main Aug 10, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the add-missing-nullables branch August 10, 2021 14:46
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.

4 participants