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

Update constructors of built-in feature filters #386

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

zhiyuanliang-ms
Copy link
Contributor

@zhiyuanliang-ms zhiyuanliang-ms marked this pull request as ready for review March 7, 2024 14:27
{
_logger = loggerFactory.CreateLogger<PercentageFilter>();
_logger = loggerFactory?.CreateLogger<PercentageFilter>();
Copy link
Member

Choose a reason for hiding this comment

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

Prior to this PR, before we have a default null value for loggerFactory, am I allowed to explicitly pass a null as parameter, i.e. new PercentageFilter(null)? If so, this PR also fixes the potential NPE, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

@zhiyuanliang-ms zhiyuanliang-ms merged commit 5c34b8c into main Mar 14, 2024
2 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/update-filter-constructor branch March 14, 2024 06:37
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.

3 participants