Skip to content

Commit 655733f

Browse files
committed
Fix nullability annotations
1 parent 053aacc commit 655733f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,14 @@ internal static Type[] GetInterfaces(RuntimeType type)
578578
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetConstraints")]
579579
private static partial void GetConstraints(QCallTypeHandle handle, ObjectHandleOnStack types);
580580

581-
internal Type[] GetConstraints()
581+
internal Type[]? GetConstraints()
582582
{
583583
Type[]? types = null;
584584
RuntimeTypeHandle nativeHandle = GetNativeHandle();
585585

586586
GetConstraints(new QCallTypeHandle(ref nativeHandle), ObjectHandleOnStack.Create(ref types));
587587

588-
return types!;
588+
return types;
589589
}
590590

591591
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "QCall_GetGCHandleForTypeHandle")]
@@ -744,12 +744,12 @@ internal RuntimeType[] GetInstantiationInternal()
744744
return types!;
745745
}
746746

747-
internal Type[] GetInstantiationPublic()
747+
internal Type[]? GetInstantiationPublic()
748748
{
749749
Type[]? types = null;
750750
RuntimeTypeHandle nativeHandle = GetNativeHandle();
751751
GetInstantiation(new QCallTypeHandle(ref nativeHandle), ObjectHandleOnStack.Create(ref types), Interop.BOOL.FALSE);
752-
return types!;
752+
return types;
753753
}
754754

755755
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_Instantiate")]
@@ -1229,12 +1229,12 @@ internal static RuntimeType[] GetMethodInstantiationInternal(RuntimeMethodHandle
12291229
return types!;
12301230
}
12311231

1232-
internal static Type[] GetMethodInstantiationPublic(IRuntimeMethodInfo method)
1232+
internal static Type[]? GetMethodInstantiationPublic(IRuntimeMethodInfo method)
12331233
{
12341234
RuntimeType[]? types = null;
12351235
GetMethodInstantiation(EnsureNonNullMethodInfo(method).Value, ObjectHandleOnStack.Create(ref types), Interop.BOOL.FALSE);
12361236
GC.KeepAlive(method);
1237-
return types!;
1237+
return types;
12381238
}
12391239

12401240
[MethodImpl(MethodImplOptions.InternalCall)]

0 commit comments

Comments
 (0)