From 391f42974539fe8ba2d3be8576cffd5bc619fad6 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 5 Feb 2020 02:32:25 +0000 Subject: [PATCH] Make classes having only static members static --- .../LocalAccounts/StringUtil.cs | 9 +-------- .../ScheduledJobDefinition.cs | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/StringUtil.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/StringUtil.cs index 3534b34cc49..eaa8321eb89 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/StringUtil.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/StringUtil.cs @@ -9,15 +9,8 @@ namespace System.Management.Automation.SecurityAccountsManager /// /// Contains utility functions for formatting localizable strings. /// - internal class StringUtil + internal static class StringUtil { - /// - /// Private constructor to precent auto-generation of a default constructor with greater accessability. - /// - private StringUtil() - { - } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal static string Format(string str) { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs index ecb4fc9caa6..c99357a7e83 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs @@ -2300,7 +2300,7 @@ internal string FQEID /// /// Simple string formatting helper. /// - internal class StringUtil + internal static class StringUtil { internal static string Format(string formatSpec, object o) {