Skip to content

Avoid specialized-generic methods for object null checks in StylusTraceLogger - #10880

Open
h3xds1nz wants to merge 1 commit into
dotnet:mainfrom
h3xds1nz:stylus-logger
Open

h3xds1nz wants to merge 1 commit into
dotnet:mainfrom
h3xds1nz:stylus-logger

Conversation

@h3xds1nz

@h3xds1nz h3xds1nz commented May 26, 2025 •

Copy link
Copy Markdown
Member

Description

Uses ArgumentNullException.ThrowIfNull over the Contracts-inspired generic method, increasing code clarity and decreasing type/method bloat in this case by preferring a standardized method to check for null.

Customer Impact

Improved developer experience.

Regression

No.

Testing

Local build.

Risk

None.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz
h3xds1nz requested a review from a team as a code owner May 26, 2025 10:07
@dotnet-policy-service dotnet-policy-service Bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels May 26, 2025
@codecov

codecov Bot commented May 26, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 2.98815%. Comparing base (57fe8ac) to head (9dc2187).
⚠️ Report is 281 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main     #10880          +/-   ##
===================================================
- Coverage   13.48885%   2.98815%   -10.50070%     
===================================================
  Files           3317       3319           +2     
  Lines         664749     664892         +143     
  Branches       74643      74674          +31     
===================================================
- Hits           89667      19868       -69799     
- Misses        572488     644843       +72355     
+ Partials        2594        181        -2413     
Flag Coverage Δ
Debug 2.98815% <0.00000%> (-10.50070%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lindexi

lindexi commented Nov 30, 2026

Copy link
Copy Markdown
Member

I cherry-picked your changes into my WpfRuntime repo, the GitHub Actions CI build passed and produced a NuGet package. You can now install the following package in your project to test out / use your fix:

<PackageReference Include="WpfLab.WpfRuntime" Version="1.1.0.1-test.20261130094515.3d57b3" />

See: WpfLab/WpfRuntime#51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants