From 6f955a0e4c4493ddb193421b8356bfb8651a0860 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 00:06:24 +0100 Subject: [PATCH 1/3] Enable nullable: System.Management.Automation.Tracing.IEtwEventCorrelator --- .../utils/tracing/EtwEventCorrelator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs index 4895a582223..40bc9c32644 100644 --- a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs +++ b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs @@ -8,6 +8,8 @@ namespace System.Management.Automation.Tracing using System; using System.Diagnostics.Eventing; +#nullable enable + /// /// An object that can be used to manage the ETW activity ID of the current thread. /// @@ -43,6 +45,8 @@ public interface IEtwEventCorrelator IEtwActivityReverter StartActivity(); } +#nullable restore + /// /// A simple implementation of . /// From c11f7986c554589d8060f3da73c4f4e06a3ac798 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 18:55:16 +0100 Subject: [PATCH 2/3] Removing whitespace before/after nullable pragma --- .../utils/tracing/EtwEventCorrelator.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs index 40bc9c32644..6a7c5faba8f 100644 --- a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs +++ b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs @@ -9,7 +9,6 @@ namespace System.Management.Automation.Tracing using System.Diagnostics.Eventing; #nullable enable - /// /// An object that can be used to manage the ETW activity ID of the current thread. /// @@ -44,7 +43,6 @@ public interface IEtwEventCorrelator /// the new activity yields control of the current thread. IEtwActivityReverter StartActivity(); } - #nullable restore /// From 75bed3f2d2edb57cc2648cb0722c0c866959a59a Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 19:38:41 +0100 Subject: [PATCH 3/3] Removing whitespace before/after nullable pragma --- .../utils/tracing/EtwEventCorrelator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs index 6a7c5faba8f..bf899cbe79e 100644 --- a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs +++ b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs @@ -8,11 +8,11 @@ namespace System.Management.Automation.Tracing using System; using System.Diagnostics.Eventing; -#nullable enable /// /// An object that can be used to manage the ETW activity ID of the current thread. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Etw")] +#nullable enable public interface IEtwEventCorrelator { ///