-
-
Notifications
You must be signed in to change notification settings - Fork 1k
chore: Enable nullable annotations for part of the files #2944
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
base: master
Are you sure you want to change the base?
Conversation
4f0caff to
720fb7f
Compare
| int iterationCount = DefaultValue, | ||
| int invocationCount = DefaultValue, | ||
| string? id = null, | ||
| string id = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This modification don't change existing behaviors.
Because when null or empty string is passed. Id characteristic is not set.
| Environment.NewLine, | ||
| benchmarkCase.Descriptor.WorkloadMethod.GetParameters() | ||
| .Select((parameter, index) => $"private {GetFieldType(parameter.ParameterType, benchmarkCase.Parameters.GetArgument(parameter.Name)).GetCorrectCSharpTypeName()} __argField{index};")); | ||
| .Select((parameter, index) => $"private {GetFieldType(parameter.ParameterType, benchmarkCase.Parameters.GetArgument(parameter.Name!)).GetCorrectCSharpTypeName()} __argField{index};")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameter.Name is ensured to be not null except for return paramenter
720fb7f to
3203b9c
Compare
| yield return RuntimeValidator.DontFailOnError; | ||
| } | ||
|
|
||
| public IOrderer Orderer => null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following property must be nullable.
ArtifactsPathSummaryStyleOrdererCategoryDiscovererCultureInfo
Because it need to represent value is not set.(It's used for merge multiple configs)
708b8bd to
fe024d2
Compare
fe024d2 to
b3f8d0c
Compare
This PR intended to fix a part issue #2815
By enabling
#nullable enableand fix nullable errors.