Uh oh!
There was an error while loading. Please reload this page.
[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:
|
nvborisenko
commented
Jan 22, 2025
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