Skip to content

Commit 4506441

Browse files
Replace a few SuppressMessage annotations with UnconditionalSuppressMessage (#109186)
Co-authored-by: Eirik Tsarpalis <[email protected]>
1 parent 555da9f commit 4506441

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverterFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static bool IsSupportedTypeCode(TypeCode typeCode)
2525
or TypeCode.Byte or TypeCode.UInt16 or TypeCode.UInt32 or TypeCode.UInt64;
2626
}
2727

28-
[SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
28+
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
2929
Justification = "The constructor has been annotated with RequiredDynamicCodeAttribute.")]
3030
public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)
3131
{

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/ReflectionEmitMemberAccessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public ReflectionEmitMemberAccessor()
1818
{
1919
}
2020

21-
[SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
21+
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
2222
Justification = "The constructor has been marked RequiresDynamicCode")]
2323
public override Func<object>? CreateParameterlessConstructor(Type type, ConstructorInfo? constructorInfo)
2424
{

0 commit comments

Comments
 (0)