Skip to content

Commit 321e5eb

Browse files
authored
Fix annotation in DataTableReaderListnener (#40855)
When running the new nullable constructor analysis on runtime we discovered what appears to be a missing annotation in `DataTableReaderListener`. Note: the second `if` check in the constructor seems like dead code. It's checking for the field to be non-null before ever setting the field to a value. Probably could be deleted.
1 parent 12f8e34 commit 321e5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Data.Common/src/System/Data/DataTableReaderListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace System.Data
77
{
88
internal sealed class DataTableReaderListener
99
{
10-
private DataTable _currentDataTable;
10+
private DataTable? _currentDataTable;
1111
private bool _isSubscribed;
1212
private readonly WeakReference _readerWeak;
1313

0 commit comments

Comments
 (0)