Skip to content

Commit 8b56f2a

Browse files
committed
remove nullable annot
1 parent 2b46138 commit 8b56f2a

File tree

1 file changed

+3
-3
lines changed
  • src/Build/Collections/RetrievableEntryHashSet

1 file changed

+3
-3
lines changed

src/Build/Collections/RetrievableEntryHashSet/HashSet.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public bool Remove(string item)
366366

367367
Debug.Assert((StartOfFreeList - _freeList) < 0, "shouldn't underflow because max hashtable length is MaxPrimeArrayLength = 0x7FEFFFFD(2146435069) _freelist underflow threshold 2147483646");
368368
entry.Next = StartOfFreeList - _freeList;
369-
entry.Value = default!;
369+
entry.Value = default;
370370

371371
_freeList = i;
372372
_freeCount++;
@@ -441,7 +441,7 @@ public virtual void OnDeserialization(object sender)
441441
}
442442

443443
int capacity = siInfo.GetInt32(CapacityName);
444-
_comparer = (IEqualityComparer<string>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<string>))!;
444+
_comparer = (IEqualityComparer<string>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<string>));
445445
_freeList = -1;
446446
_freeCount = 0;
447447

@@ -791,7 +791,7 @@ void IEnumerator.Reset()
791791
}
792792

793793
_index = 0;
794-
Current = default!;
794+
Current = default;
795795
}
796796
}
797797
}

0 commit comments

Comments
 (0)