Skip to content

Commit

Permalink
Replace a few SuppressMessage annotations with UnconditionalSuppressM…
Browse files Browse the repository at this point in the history
…essage (dotnet#109180)
  • Loading branch information
eiriktsarpalis authored and mikelle-rogers committed Dec 4, 2024
1 parent 1532e7d commit 18fcbcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static bool IsSupportedTypeCode(TypeCode typeCode)
or TypeCode.Byte or TypeCode.UInt16 or TypeCode.UInt32 or TypeCode.UInt64;
}

[SuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.",
Justification = "The constructor has been annotated with RequiredDynamicCodeAttribute.")]
public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ReflectionEmitMemberAccessor()
{
}

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

0 comments on commit 18fcbcb

Please sign in to comment.