Skip to content

Commit f87956b

Browse files
committed
fixed the last two warnings
1 parent 9c6631b commit f87956b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/log4net/Layout/Pattern/UserNamePatternConverter.cs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//
1818
#endregion
1919

20+
using System.Diagnostics.CodeAnalysis;
2021
using System.IO;
2122

2223
using log4net.Core;
@@ -28,6 +29,7 @@ namespace log4net.Layout.Pattern;
2829
/// </summary>
2930
/// <author>Douglas de la Torre</author>
3031
/// <author>Nicko Cadell</author>
32+
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "Reflection")]
3133
internal sealed class UserNamePatternConverter : PatternLayoutConverter
3234
{
3335
/// <summary>

src/log4net/Layout/Pattern/UtcDatePatternConverter.cs

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using log4net.Core;
2424
using log4net.Util;
2525
using log4net.DateFormatter;
26+
using System.Diagnostics.CodeAnalysis;
2627

2728
namespace log4net.Layout.Pattern;
2829

@@ -44,6 +45,7 @@ namespace log4net.Layout.Pattern;
4445
/// </remarks>
4546
/// <seealso cref="DatePatternConverter"/>
4647
/// <author>Nicko Cadell</author>
48+
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "Reflection")]
4749
internal sealed class UtcDatePatternConverter : DatePatternConverter
4850
{
4951
/// <summary>

0 commit comments

Comments
 (0)