adding null annotations (#23744)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Fri, 5 Apr 2019 14:33:07 +0000 (07:33 -0700)
committerStephen Toub <stoub@microsoft.com>
Fri, 5 Apr 2019 14:33:07 +0000 (10:33 -0400)
src/System.Private.CoreLib/shared/Internal/IO/File.Unix.cs
src/System.Private.CoreLib/shared/Internal/IO/File.Windows.cs
src/System.Private.CoreLib/shared/Internal/IO/File.cs
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/TraceLogging/TraceLoggingEventHandleTable.cs

index 50fa0f0..25d6200 100644 (file)
@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
+
 namespace Internal.IO
 {
     internal static partial class File
index 0acae3b..28624bb 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using Microsoft.Win32;
 using Microsoft.Win32.SafeHandles;
 using System.IO;
index 2fcc0f3..a843989 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System;
 using System.Diagnostics;
 using System.Security;
@@ -19,7 +20,7 @@ namespace Internal.IO
         // given by the specified path exists; otherwise, the result is
         // false.  Note that if path describes a directory,
         // Exists will return true.
-        public static bool Exists(string path)
+        public static bool Exists(string? path)
         {
             try
             {
index 9afc1cf..d26b532 100644 (file)
@@ -2,6 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 // See the LICENSE file in the project root for more information.
 
+#nullable enable
 using System.Threading;
 
 namespace System.Diagnostics.Tracing