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

Accept no-op null arguments in ScopedLoggingContext.Builder. #356

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

copybara-service[bot]
Copy link

Accept no-op null arguments in ScopedLoggingContext.Builder.

All Flogger fluent method calls accept no-op arguments to permit conditionally ignoring a method call without splitting the method chain. While the builder can be assigned to a local variable to conditionally apply methods, this is inconsistent with other usage of Flogger, and discouraged by javadoc.

https://google.github.io/flogger/best_practice.html#no-split

RELNOTES=Accept no-op null arguments in ScopedLoggingContext.Builder.

All Flogger fluent method calls accept no-op arguments to permit conditionally ignoring a method call without splitting the method chain. While the builder can be assigned to a local variable to conditionally apply methods, this is inconsistent with other usage of Flogger, and discouraged by javadoc.

https://google.github.io/flogger/best_practice.html#no-split

RELNOTES=Accept no-op null arguments in ScopedLoggingContext.Builder.
PiperOrigin-RevId: 557923868
@copybara-service copybara-service bot merged commit 5aa0649 into master Aug 17, 2023
@copybara-service copybara-service bot deleted the test_557574712 branch August 17, 2023 20: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.

2 participants