Skip to content

Commit 1b7b11c

Browse files
committed
Address minor build warnings
1 parent ecb72c4 commit 1b7b11c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TableStorage.Bson/BsonDocumentSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public byte[] Serialize<T>(T value)
5858
class DateOnlyJsonConverter : JsonConverter<DateOnly>
5959
{
6060
public override DateOnly ReadJson(JsonReader reader, Type objectType, DateOnly existingValue, bool hasExistingValue, JsonSerializer serializer)
61-
=> DateOnly.Parse((string)reader.Value, CultureInfo.InvariantCulture);
61+
=> DateOnly.Parse((string)reader.Value!, CultureInfo.InvariantCulture);
6262

6363
public override void WriteJson(JsonWriter writer, DateOnly value, JsonSerializer serializer)
6464
=> writer.WriteValue(value.ToString("O", CultureInfo.InvariantCulture));

src/TableStorage.MessagePack/MessagePackDocumentSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public MessagePackDocumentSerializer(MessagePackSerializerOptions? options = def
4242
public byte[] Serialize<T>(T value) => value == null ? new byte[0] : MessagePackSerializer.Serialize(value.GetType(), value, options);
4343

4444
#if NET6_0_OR_GREATER
45-
class DateOnlyFormatterResolver : IFormatterResolver
45+
internal class DateOnlyFormatterResolver : IFormatterResolver
4646
{
4747
public static IFormatterResolver Instance = new DateOnlyFormatterResolver();
4848

@@ -54,7 +54,7 @@ public IMessagePackFormatter<T> GetFormatter<T>()
5454
return null!;
5555
}
5656

57-
class DateOnlyFormatter : IMessagePackFormatter<DateOnly>
57+
internal class DateOnlyFormatter : IMessagePackFormatter<DateOnly>
5858
{
5959
public static readonly IMessagePackFormatter<DateOnly> Instance = new DateOnlyFormatter();
6060

0 commit comments

Comments
 (0)