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

Fix nullability annotations of OpenXmlComparableSimpleReference #953

Merged
merged 2 commits into from
Jul 4, 2021

Conversation

ThomasBarnekow
Copy link
Collaborator

This PR fixes #933.

twsouthwick
twsouthwick previously approved these changes Jun 24, 2021
@@ -94,26 +94,28 @@ public override bool Equals(object? obj)
{
return false;
}
else if (Value is null)

if (Value is null)
Copy link
Member

Choose a reason for hiding this comment

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

why remove the else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not required (see the return false above).

@twsouthwick
Copy link
Member

/azp run

@twsouthwick twsouthwick added this to the v2.13.1 milestone Jun 24, 2021
@twsouthwick
Copy link
Member

image

@ThomasBarnekow
Copy link
Collaborator Author

@twsouthwick, that's interesting. I did not get those errors when running the unit tests on my machine. How did you run those unit tests against those legacy frameworks? They are not run when using the Test Explorer or ReSharper.

@ThomasBarnekow
Copy link
Collaborator Author

@twsouthwick, please re-run the tests. I hope I fixed them but couldn't verify that it works with .NET Framework 3.5, for example.

@twsouthwick
Copy link
Member

/azp run

@twsouthwick
Copy link
Member

@ThomasBarnekow Check out https://github.com/OfficeDev/Open-XML-SDK/blob/main/CONTRIBUTING.md#building for details on running tests for all platforms. It causes memory issues to load all versions of the project by default, so I separated out a while back. Maybe with VS 2022 being 64-bit that won't be as big of a deal.

@twsouthwick twsouthwick merged commit fc776e4 into dotnet:main Jul 4, 2021
@ThomasBarnekow ThomasBarnekow deleted the nullability-fix branch December 8, 2021 10:19
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.

Incorrect nullability annotations for OpenXmlComparableSimpleReference operator ==/!=
2 participants