[dotnet] Annotate nullability on most remaining types#15257
[dotnet] Annotate nullability on most remaining types#15257RenderMichael merged 10 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
Sorry for the recent changes, I just wanted to remove unnecessary complexity. This PR shouldn't make unnecessary optimizations, those can be reviewed separately |
* [dotnet] Annotate nullability on most remaining types * fix bool check * Improve experience with `By` * Remove additional validation * Remove complexity from `By` * Update dotnet/src/webdriver/DomMutationData.cs * Simplify null warnings to show where exactly we are suppressing nulls
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Annotate nullability on most remaining types
Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
enhancement, bug fix
Description
Annotated nullability for most remaining types across the project.
Improved code consistency by replacing legacy patterns with modern C# features.
Added null checks and exception handling for better error management.
Refactored properties and methods to use concise syntax and readonly fields.
Changes walkthrough 📝
19 files
Annotated nullability and refactored `By` class for clarityAdded nullability annotations and refactored `Cookie` classAdded nullability annotations to `DevToolsSession`Added nullability annotations to `DomMutationData`Enabled nullability in `InternetExplorerDriverLogLevel`RefactoredInternetExplorerOptionswith nullability and readonlyfields
Added nullability annotations to `INetwork` interfaceEnabled nullability in `ISupportsLogs`Enabled nullability in `IWrapsElement`Added nullability annotations to `PortUtilities`Added nullability annotations to `ReturnedCookie`Enabled nullability in `LogType`Added nullability annotations to `NetworkAuthenticationHandler`Added nullability annotations and refactored `NetworkManager`Added nullability annotations to `NetworkRequestHandler`Added nullability annotations to `NetworkResponseHandler`Added nullability annotations and improved error handling inRelativeByRefactored `DesiredCapabilities` with nullability and concise syntaxAdded nullability annotations and improved error handling inRemoteWebDriver