Remove nullable disable annotation in the test project.

This commit is contained in:
andy840119
2022-08-07 16:51:17 +08:00
parent 96ba8a18b1
commit fffb0280b2
3 changed files with 3 additions and 9 deletions

View File

@@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
@@ -76,7 +74,7 @@ namespace osu.Framework.Tests.Threading
private class NestedDisposableObject : DisposableObject
{
public DisposableObject Nested;
public DisposableObject? Nested;
public override void Dispose()
{

View File

@@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using NUnit.Framework;
using osu.Framework.Logging;
@@ -15,7 +13,7 @@ namespace osu.Framework.Tests.Threading
[TestFixture]
public class SchedulerTest
{
private Scheduler scheduler;
private Scheduler scheduler = null!;
private bool fromMainThread;
@@ -265,7 +263,7 @@ namespace osu.Framework.Tests.Threading
int invocations = 0;
ScheduledDelegate del = null;
ScheduledDelegate? del = null;
scheduler.Add(del = new ScheduledDelegate(() =>
{

View File

@@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;