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 ArrayEditor #12675

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

Conversation

gpetrou
Copy link
Contributor

@gpetrou gpetrou commented Dec 23, 2024

Proposed changes

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

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.03249%. Comparing base (dba5d6e) to head (4acb91a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12675         +/-   ##
===================================================
+ Coverage   76.03108%   76.03249%   +0.00140%     
===================================================
  Files           3181        3181                 
  Lines         639670      639670                 
  Branches       47215       47215                 
===================================================
+ Hits          486348      486357          +9     
+ Misses        149805      149789         -16     
- Partials        3517        3524          +7     
Flag Coverage Δ
Debug 76.03249% <100.00000%> (+0.00140%) ⬆️
integration 18.17487% <0.00000%> (+0.00070%) ⬆️
production 49.82339% <100.00000%> (+0.00036%) ⬆️
test 97.02915% <ø> (+0.00225%) ⬆️
unit 47.05837% <100.00000%> (+0.01300%) ⬆️

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

@@ -22,12 +20,12 @@ public ArrayEditor(Type type) : base(type)
/// Gets or sets the data type this collection contains.
/// </summary>
protected override Type CreateCollectionItemType()
=> CollectionType?.GetElementType();
=> CollectionType?.GetElementType()!;
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment, explaining in detail why CollectionType?.GetElement()! will never return null.

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

Successfully merging this pull request may close these issues.

2 participants