-
-
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 DevTools
and event args
#15252
[dotnet] Annotate nullability on DevTools
and event args
#15252
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
From automated PR review:
Every non-nullable parameter which doesn't get validated is intentionally so. Each of those values comes from the CDP responses. Values are marked as optional/non-optional in the protocol spec, but I do not want Selenium to be the problem which comes inbetween an accidentally null value. |
Test failures are unrelated to this PR //java/test/org/openqa/selenium/mobile:NetworkConnectionTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest-firefox-beta
//rb/spec/integration/selenium/webdriver:network-firefox-beta-bidi
//rb/spec/integration/selenium/webdriver:network-firefox-bidi |
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
DevTools
and event argsMotivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
enhancement, bug fix
Description
Annotated nullability across multiple classes and interfaces.
Improved exception handling with specific exception types.
Refactored and optimized code for better readability and maintainability.
Added constructors and updated properties for better initialization and null safety.
Changes walkthrough 📝
18 files
Updated method and dictionary to support nullable objects.
Added exception handling and nullability annotations.
Enabled nullability and added null checks for properties.
Enabled nullability and simplified interface definitions.
Added nullability annotations and exception documentation.
Added exception handling and nullability annotations.
Refactored for null safety and improved exception handling.
Refactored HTTP request and response handling for clarity.
Refactored HTTP request and response handling for clarity.
Refactored HTTP request and response handling for clarity.
Refactored HTTP request and response handling for clarity.
Enabled nullability for better type safety.
Added nullability annotations and default initializations.
Added nullability annotations for conflict option name.
Refactored for null safety and added exception handling.
Added nullability annotations and exception handling.
Added constructor and nullability annotations for initialization.
Added constructor and nullability annotations for initialization.
2 files
Added null-forgiving operator to prevent null warnings.
Fixed typo in command description and enabled nullability.
12 files