refactor: use nullable annotations instead of CanBeNullAttribute

This commit is contained in:
goat 2021-08-22 23:06:46 +02:00
parent 3c5c7fbc80
commit 010a4972cd
No known key found for this signature in database
GPG key ID: F18F057873895461
14 changed files with 33 additions and 62 deletions

View file

@ -65,8 +65,7 @@ namespace Dalamud.Game.ClientState.Statuses
/// </summary>
/// <param name="index">Status Index.</param>
/// <returns>The status at the specified index.</returns>
[CanBeNull]
public Status this[int index]
public Status? this[int index]
{
get
{
@ -96,8 +95,7 @@ namespace Dalamud.Game.ClientState.Statuses
/// </summary>
/// <param name="address">The address of the status effect in memory.</param>
/// <returns>The status object containing the requested data.</returns>
[CanBeNull]
public Status CreateStatusReference(IntPtr address)
public Status? CreateStatusReference(IntPtr address)
{
var clientState = Service<ClientState>.Get();