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

Enable nullability in TransparentBehavior #11298

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gpetrou
Copy link
Contributor

@gpetrou gpetrou commented May 1, 2024

Proposed changes

  • Enable nullability in TransparentBehavior.
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented May 1, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 74.27277%. Comparing base (74caf32) to head (143bfa6).
Report is 13 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #11298         +/-   ##
===================================================
+ Coverage   74.26878%   74.27277%   +0.00398%     
===================================================
  Files           3025        3025                 
  Lines         626861      626861                 
  Branches       46742       46743          +1     
===================================================
+ Hits          465562      465587         +25     
+ Misses        157959      157931         -28     
- Partials        3340        3343          +3     
Flag Coverage Δ
Debug 74.27277% <25.00000%> (+0.00398%) ⬆️
integration 17.99452% <25.00000%> (-0.01020%) ⬇️
production 46.99959% <25.00000%> (+0.00877%) ⬆️
test 96.99415% <ø> (ø)
unit 43.96723% <0.00000%> (+0.03159%) ⬆️

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

@elachlan elachlan added the waiting-review This item is waiting on review by one or more members of team label May 1, 2024
@ricardobossan ricardobossan added 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels May 2, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label May 15, 2024
@gpetrou gpetrou requested a review from lonitra May 15, 2024 12:46
@elachlan elachlan added the waiting-review This item is waiting on review by one or more members of team label May 15, 2024
@@ -23,7 +21,7 @@ internal class TransparentBehavior : Behavior.Behavior
/// <summary>
/// Constructor that accepts the related ControlDesigner.
/// </summary>
internal TransparentBehavior(ControlDesigner designer) => _designer = designer;
internal TransparentBehavior(ControlDesigner designer) => _designer = designer.OrThrowIfNull();
Copy link
Member

Choose a reason for hiding this comment

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

The designer here can be changed to be nullable ControlDesigner? designer because designer.OrThrowIfNull() is added, so that you can avoid changing the Public method in ControlBodyGlyph.cs

@LeafShi1 LeafShi1 added 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: NRT 📭 waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants