Skip to content

Commit

Permalink
Add missing #nullable pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
edevoogd committed May 25, 2021
1 parent 7b5db3b commit 70d15a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable enable

using System.Threading;
using System.Runtime.CompilerServices;

Expand Down Expand Up @@ -92,3 +94,5 @@ internal Interval Seal()
}
}
}

#nullable restore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable enable

using System;
using System.Diagnostics;
#if NETSTANDARD2_1 || NETCOREAPP3_0 || NETCOREAPP3_1 || NET5_0 || NET5_0_OR_GREATER
Expand Down Expand Up @@ -105,7 +107,7 @@ internal Snapshot(long offset)
/// <returns></returns>
public static int Compare(in LazyClockOffsetSerialPosition first, in LazyClockOffsetSerialPosition second) => first.CompareTo(second);

int IComparable.CompareTo(object obj)
int IComparable.CompareTo(object? obj)
{
if (obj == null) return 1;
if (obj is LazyClockOffsetSerialPosition value)
Expand All @@ -129,3 +131,5 @@ public int CompareTo(LazyClockOffsetSerialPosition value)
}
}
}

#nullable restore

0 comments on commit 70d15a2

Please sign in to comment.