-
-
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 for DriverService
and chromium/safari services
#15101
[dotnet] Annotate nullability for DriverService
and chromium/safari services
#15101
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
In general any field here can be null. Later all fields go to executable as command parameters (if not null or empty). The principle question: driverService.PortServerAddress = null; // am I doing right as an user? or exception? I guess any parameter in this class can be nullable. TIP: |
Good points! Let me update the code. |
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.
Description
Adds nullability annotations to
DriverService
, as well as some child typesSafariDriverService
andChromiumDriverService
.Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement
Description
Added nullability annotations to
DriverService
and derived classes.Refactored properties in
ChromiumDriverService
to use auto-properties.Improved code readability and safety with nullable reference types.
Updated event handling and initialization logic in
DriverService
.Changes walkthrough 📝
ChromiumDriverService.cs
Refactored `ChromiumDriverService` with nullability annotations
dotnet/src/webdriver/Chromium/ChromiumDriverService.cs
DriverService.cs
Enhanced `DriverService` with nullability and refactoring
dotnet/src/webdriver/DriverService.cs
SafariDriverService.cs
Updated `SafariDriverService` with nullability and refactoring
dotnet/src/webdriver/Safari/SafariDriverService.cs