-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] Annotate nullability on ChromiumOptions
#15173
[dotnet] Annotate nullability on ChromiumOptions
#15173
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
I am not adding null checks to:
This is to avoid breaking users. There is no downstream issue on the C# side of passing in null (it will just get serialized normally). If there are exceptions on the backend, let users see it. We will add a null warning, but not throw an exception on our side here. |
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.
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Annotated nullability for properties and methods in
ChromiumOptions
.Replaced mutable fields with
readonly
where applicable.Added exception handling for invalid arguments in public methods.
Refactored helper methods to use static and nullable parameters.
Changes walkthrough 📝
ChromiumOptions.cs
Added nullability annotations and refactored `ChromiumOptions`.
dotnet/src/webdriver/Chromium/ChromiumOptions.cs
#nullable enable
.readonly
for immutability.