v2.4.2023.1001 开启可空特性 #31
Annotations
1 error and 20 warnings
test
Process completed with exit code 1.
|
test:
NewLife.Remoting/Http/HttpCodec.cs#L151
Nullability of reference types in type of parameter 'value' of 'void HttpMessage.Payload.set' doesn't match implicitly implemented member 'void IMessage.Payload.set' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiHost.cs#L17
Nullability of reference types in return type of 'IEncoder? ApiHost.Encoder.get' doesn't match implicitly implemented member 'IEncoder IApiHost.Encoder.get' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/IApiSession.cs#L60
Cannot convert null literal to non-nullable reference type.
|
test:
NewLife.Remoting/ApiNetServer.cs#L85
Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiNetServer.cs#L85
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.this[string key].set' doesn't match implicitly implemented member 'void IExtend.this[string key].set' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiNetServer.cs#L166
Cannot convert null literal to non-nullable reference type.
|
test:
NewLife.Remoting/ApiServer.cs#L179
Nullability of reference types in type of parameter 'reason' of 'void ApiServer.Stop(string reason)' doesn't match implicitly implemented member 'void IServer.Stop(string? reason)' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ICluster.cs#L55
Possible null reference argument for parameter 'value' in 'bool ICluster<TKey, TValue>.Put(TValue value)'.
|
test:
NewLife.Remoting/ICluster.cs#L76
Possible null reference argument for parameter 'value' in 'bool ICluster<TKey, TValue>.Put(TValue value)'.
|
test:
NewLife.Remoting/JsonEncoder.cs#L54
Possible null reference return.
|
test:
NewLife.Remoting/Http/HttpCodec.cs#L151
Nullability of reference types in type of parameter 'value' of 'void HttpMessage.Payload.set' doesn't match implicitly implemented member 'void IMessage.Payload.set' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiHost.cs#L17
Nullability of reference types in return type of 'IEncoder? ApiHost.Encoder.get' doesn't match implicitly implemented member 'IEncoder IApiHost.Encoder.get' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/IApiSession.cs#L60
Cannot convert null literal to non-nullable reference type.
|
test:
NewLife.Remoting/ApiNetServer.cs#L85
Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiNetServer.cs#L85
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.this[string key].set' doesn't match implicitly implemented member 'void IExtend.this[string key].set' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ApiNetServer.cs#L166
Cannot convert null literal to non-nullable reference type.
|
test:
NewLife.Remoting/ApiServer.cs#L179
Nullability of reference types in type of parameter 'reason' of 'void ApiServer.Stop(string reason)' doesn't match implicitly implemented member 'void IServer.Stop(string? reason)' (possibly because of nullability attributes).
|
test:
NewLife.Remoting/ICluster.cs#L55
Possible null reference argument for parameter 'value' in 'bool ICluster<TKey, TValue>.Put(TValue value)'.
|
test:
NewLife.Remoting/JsonEncoder.cs#L54
Possible null reference return.
|
test:
NewLife.Remoting/JsonEncoder.cs#L54
Nullability of reference types in value of type 'IDictionary<string, object?>' doesn't match target type 'IDictionary<string, object>'.
|