Skip to content

Commit

Permalink
Remove several more #nullable disables (dotnet#57933)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Aug 23, 2021
1 parent 3863140 commit 896eb15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/libraries/Common/src/System/CSharpHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable
using System.Collections.Generic;
using System.Globalization;

Expand Down Expand Up @@ -117,7 +116,7 @@ public static string CreateEscapedIdentifier(string name)
/// independent identifier.
/// </para>
/// </devdoc>
public static bool IsValidLanguageIndependentIdentifier(string value)
public static bool IsValidLanguageIndependentIdentifier(string? value)
{
return IsValidTypeNameOrIdentifier(value, false);
}
Expand All @@ -139,7 +138,7 @@ internal static bool IsPrefixTwoUnderscore(string value)
}
}

internal static bool IsValidTypeNameOrIdentifier(string value, bool isTypeName)
internal static bool IsValidTypeNameOrIdentifier(string? value, bool isTypeName)
{
bool nextMustBeStartChar = true;

Expand Down
1 change: 0 additions & 1 deletion src/libraries/Common/src/System/HexConverter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable disable
using System.Diagnostics;
using System.Runtime.CompilerServices;
#if SYSTEM_PRIVATE_CORELIB
Expand Down
1 change: 1 addition & 0 deletions src/libraries/System.CodeDom/src/System.CodeDom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>$(DefineConstants);CODEDOM</DefineConstants>
<TargetFrameworks>$(NetCoreAppCurrent);netstandard2.0;net461</TargetFrameworks>
<Nullable>annotations</Nullable>
<SetIsTrimmable>false</SetIsTrimmable>
<IsPackable>true</IsPackable>
<PackageDescription>Provides types that can be used to model the structure of a source code document and to output source code for that model in a supported language.
Expand Down

0 comments on commit 896eb15

Please sign in to comment.