mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Remove nullable disable annotation in the test project.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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(() =>
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user