-
-
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 event args #15134
[dotnet] Annotate nullability on devtools event args #15134
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
DevTools will be deprecated, I am afraid it is risky to make any "minor" changes in this area. Except you are sure these minor changes are absolutely safe. |
These changes are completely safe. The event args are never serialized or expected to be initialized by users. They just have an 99% of the code changes just add an explicit constructor. |
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
Annotates nullability on devtools event args types, and adds explicit constructors that ensures non-nullable reference types are initialized.
Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
enhancement, bug fix
Description
Annotated nullability for DevTools event arguments and related classes.
Added explicit constructors to ensure proper initialization of non-nullable fields.
Improved type safety with null checks and exception handling for invalid arguments.
Refactored event handling logic for better readability and maintainability.
Changes walkthrough 📝
20 files
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Updated method to return nullable type.
Added null checks and annotations for type safety.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added null checks and annotations for constructor arguments.
Added null checks and annotations for constructor arguments.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Added nullability annotations and explicit constructor.
Refactored event handling for better readability.
Refactored log entry handling with improved initialization.
Refactored network event handling with improved initialization.
Refactored target event handling with improved initialization.
Refactored event handling for better readability.
11 files