mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Mark DebugTools.AssertNotNull as [NotNull]
This means C# nullable analysis actually recognizes it.
This commit is contained in:
@@ -47,7 +47,7 @@ END TEMPLATE-->
|
||||
|
||||
### Other
|
||||
|
||||
*None yet*
|
||||
* `DebugTools.AssertNotNull()` has been marked with `[NotNull]`, making C# nullable analysis recognize it.
|
||||
|
||||
### Internal
|
||||
|
||||
|
||||
@@ -223,7 +223,9 @@ namespace Robust.Shared.Utility
|
||||
/// <param name="message">Exception message.</param>
|
||||
[Conditional("DEBUG")]
|
||||
[AssertionMethod]
|
||||
public static void AssertNotNull([AssertionCondition(AssertionConditionType.IS_NOT_NULL)]
|
||||
public static void AssertNotNull(
|
||||
[AssertionCondition(AssertionConditionType.IS_NOT_NULL)]
|
||||
[System.Diagnostics.CodeAnalysis.NotNull]
|
||||
object? arg,
|
||||
string? message = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user