From 6a358d9f78a83df46376d4cd42dacbe93e1db260 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 6 Sep 2026 15:50:40 +0100 Subject: [PATCH] abstract: enable nullable annotations in legacy files --- src/Yavsc.Abstract/Billing/IBillable.cs | 2 ++ src/Yavsc.Abstract/Blogspot/BlogPostAuthorDto.cs | 2 ++ src/Yavsc.Abstract/Blogspot/BlogPostDto.cs | 2 ++ src/Yavsc.Abstract/Blogspot/IBlogPost.cs | 2 ++ src/Yavsc.Abstract/Chat/ChatHubConstants.cs | 2 ++ src/Yavsc.Abstract/Chat/IChatRoom.cs | 2 ++ src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs | 4 +++- src/Yavsc.Abstract/FileSystem/FsOperationInfo.cs | 2 ++ src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs | 2 ++ src/Yavsc.Abstract/Google/GDate.cs | 2 ++ .../Google/Messaging/MessageWithPayloadResponse.cs | 2 ++ src/Yavsc.Abstract/IT/Fixing/Bug.cs | 2 ++ src/Yavsc.Abstract/Identity/IApplicationUser.cs | 4 +++- src/Yavsc.Abstract/Identity/UserDisplayHelpers.cs | 2 ++ src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs | 4 +++- src/Yavsc.Abstract/Messaging/Comment.cs | 2 ++ src/Yavsc.Abstract/Messaging/Notification.cs | 2 ++ src/Yavsc.Abstract/Messaging/RdvQueryEvent.cs | 2 ++ src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs | 2 ++ src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs | 4 +++- src/Yavsc.Abstract/Workflow/IPerformerProfile.cs | 2 ++ src/Yavsc.Abstract/Workflow/PerformerCodeInputValidation.cs | 2 ++ 22 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/Yavsc.Abstract/Billing/IBillable.cs b/src/Yavsc.Abstract/Billing/IBillable.cs index 416dc5bee..f936a57df 100644 --- a/src/Yavsc.Abstract/Billing/IBillable.cs +++ b/src/Yavsc.Abstract/Billing/IBillable.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using Yavsc.Services; namespace Yavsc.Billing diff --git a/src/Yavsc.Abstract/Blogspot/BlogPostAuthorDto.cs b/src/Yavsc.Abstract/Blogspot/BlogPostAuthorDto.cs index e332822e1..ab1b3fbe8 100644 --- a/src/Yavsc.Abstract/Blogspot/BlogPostAuthorDto.cs +++ b/src/Yavsc.Abstract/Blogspot/BlogPostAuthorDto.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + namespace Yavsc.Blogspot; /// diff --git a/src/Yavsc.Abstract/Blogspot/BlogPostDto.cs b/src/Yavsc.Abstract/Blogspot/BlogPostDto.cs index 9cb5b1430..bdb2ccdc8 100644 --- a/src/Yavsc.Abstract/Blogspot/BlogPostDto.cs +++ b/src/Yavsc.Abstract/Blogspot/BlogPostDto.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using Yavsc.Abstract.Identity.Security; using System.Text.Json.Serialization; diff --git a/src/Yavsc.Abstract/Blogspot/IBlogPost.cs b/src/Yavsc.Abstract/Blogspot/IBlogPost.cs index 1ef371803..38a50b78f 100644 --- a/src/Yavsc.Abstract/Blogspot/IBlogPost.cs +++ b/src/Yavsc.Abstract/Blogspot/IBlogPost.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + diff --git a/src/Yavsc.Abstract/Chat/ChatHubConstants.cs b/src/Yavsc.Abstract/Chat/ChatHubConstants.cs index b54c00c74..c673e6fae 100644 --- a/src/Yavsc.Abstract/Chat/ChatHubConstants.cs +++ b/src/Yavsc.Abstract/Chat/ChatHubConstants.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + namespace Yavsc.Abstract.Chat { public static class ChatHubConstants diff --git a/src/Yavsc.Abstract/Chat/IChatRoom.cs b/src/Yavsc.Abstract/Chat/IChatRoom.cs index 1d6f68dd5..133ca2837 100644 --- a/src/Yavsc.Abstract/Chat/IChatRoom.cs +++ b/src/Yavsc.Abstract/Chat/IChatRoom.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using System.ComponentModel.DataAnnotations; namespace Yavsc.Abstract.Chat diff --git a/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs b/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs index dd805864e..14bc86435 100644 --- a/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs +++ b/src/Yavsc.Abstract/FileSystem/AbstractFileSystemHelpers.cs @@ -1,4 +1,6 @@ -using System.Text; +#nullable enable annotations + +using System.Text; using Yavsc.ViewModels.UserFiles; namespace Yavsc.Server.Helpers diff --git a/src/Yavsc.Abstract/FileSystem/FsOperationInfo.cs b/src/Yavsc.Abstract/FileSystem/FsOperationInfo.cs index 76a481492..0e3c0e0c7 100644 --- a/src/Yavsc.Abstract/FileSystem/FsOperationInfo.cs +++ b/src/Yavsc.Abstract/FileSystem/FsOperationInfo.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + namespace Yavsc.Abstract.Helpers { public enum ErrorCode { diff --git a/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs b/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs index fa727d0c0..2ec5dcfaf 100644 --- a/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs +++ b/src/Yavsc.Abstract/FileSystem/UserDirectoryInfo.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using Yavsc.Server.Helpers; namespace Yavsc.ViewModels.UserFiles diff --git a/src/Yavsc.Abstract/Google/GDate.cs b/src/Yavsc.Abstract/Google/GDate.cs index 3506ba416..10e4de92e 100644 --- a/src/Yavsc.Abstract/Google/GDate.cs +++ b/src/Yavsc.Abstract/Google/GDate.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + // // GDate.cs // diff --git a/src/Yavsc.Abstract/Google/Messaging/MessageWithPayloadResponse.cs b/src/Yavsc.Abstract/Google/Messaging/MessageWithPayloadResponse.cs index 59538ca62..980a4abcf 100644 --- a/src/Yavsc.Abstract/Google/Messaging/MessageWithPayloadResponse.cs +++ b/src/Yavsc.Abstract/Google/Messaging/MessageWithPayloadResponse.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + // // MessageWithPayloadResponse.cs // diff --git a/src/Yavsc.Abstract/IT/Fixing/Bug.cs b/src/Yavsc.Abstract/IT/Fixing/Bug.cs index f0b403bb7..60bd155f6 100644 --- a/src/Yavsc.Abstract/IT/Fixing/Bug.cs +++ b/src/Yavsc.Abstract/IT/Fixing/Bug.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Yavsc.Attributes.Validation; diff --git a/src/Yavsc.Abstract/Identity/IApplicationUser.cs b/src/Yavsc.Abstract/Identity/IApplicationUser.cs index 5d1d5b1ca..0b8e1047c 100644 --- a/src/Yavsc.Abstract/Identity/IApplicationUser.cs +++ b/src/Yavsc.Abstract/Identity/IApplicationUser.cs @@ -1,4 +1,6 @@ -namespace Yavsc.Abstract.Identity +#nullable enable annotations + +namespace Yavsc.Abstract.Identity { public interface IApplicationUser { diff --git a/src/Yavsc.Abstract/Identity/UserDisplayHelpers.cs b/src/Yavsc.Abstract/Identity/UserDisplayHelpers.cs index 242615527..4277d6e3b 100644 --- a/src/Yavsc.Abstract/Identity/UserDisplayHelpers.cs +++ b/src/Yavsc.Abstract/Identity/UserDisplayHelpers.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + namespace Yavsc.Abstract.Identity { /// diff --git a/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs b/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs index 2c844f925..eb3dee591 100644 --- a/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs +++ b/src/Yavsc.Abstract/Interfaces/Workflow/IBookQueryData.cs @@ -1,4 +1,6 @@ -using Yavsc.Abstract.Identity; +#nullable enable annotations + +using Yavsc.Abstract.Identity; namespace Yavsc.Interfaces { diff --git a/src/Yavsc.Abstract/Messaging/Comment.cs b/src/Yavsc.Abstract/Messaging/Comment.cs index 3b8702ae1..d8eef456c 100644 --- a/src/Yavsc.Abstract/Messaging/Comment.cs +++ b/src/Yavsc.Abstract/Messaging/Comment.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using Yavsc.Interfaces; diff --git a/src/Yavsc.Abstract/Messaging/Notification.cs b/src/Yavsc.Abstract/Messaging/Notification.cs index dbbf735d5..f7b35b48b 100644 --- a/src/Yavsc.Abstract/Messaging/Notification.cs +++ b/src/Yavsc.Abstract/Messaging/Notification.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/src/Yavsc.Abstract/Messaging/RdvQueryEvent.cs b/src/Yavsc.Abstract/Messaging/RdvQueryEvent.cs index b2168bd7c..9e2ecb754 100644 --- a/src/Yavsc.Abstract/Messaging/RdvQueryEvent.cs +++ b/src/Yavsc.Abstract/Messaging/RdvQueryEvent.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + // // BookQueryEvent.cs // diff --git a/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs b/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs index 87125c544..94eeb5ab9 100644 --- a/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs +++ b/src/Yavsc.Abstract/Messaging/RdvQueryProviderInfo.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using Yavsc.Abstract.Identity; using Yavsc.Models.Relationship; diff --git a/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs b/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs index 6e55ebe51..7a1dbc261 100644 --- a/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs +++ b/src/Yavsc.Abstract/Workflow/IMobileDeviceDeclaration.cs @@ -1,4 +1,6 @@ -// Copyright (C) 2016 Paul Schneider +#nullable enable annotations + +// Copyright (C) 2016 Paul Schneider // // This file is part of yavsc. // diff --git a/src/Yavsc.Abstract/Workflow/IPerformerProfile.cs b/src/Yavsc.Abstract/Workflow/IPerformerProfile.cs index 4314dd371..606285a6c 100644 --- a/src/Yavsc.Abstract/Workflow/IPerformerProfile.cs +++ b/src/Yavsc.Abstract/Workflow/IPerformerProfile.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + namespace Yavsc.Workflow { public interface IPerformerProfile diff --git a/src/Yavsc.Abstract/Workflow/PerformerCodeInputValidation.cs b/src/Yavsc.Abstract/Workflow/PerformerCodeInputValidation.cs index 84e9c1cc7..4ed60e465 100644 --- a/src/Yavsc.Abstract/Workflow/PerformerCodeInputValidation.cs +++ b/src/Yavsc.Abstract/Workflow/PerformerCodeInputValidation.cs @@ -1,3 +1,5 @@ +#nullable enable annotations + using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations;