-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Add nullability to Alerts
#14669
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Manage() and friendsAlerts
AlertsAlerts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @RenderMichael !
Description
Adds NRT annotations to the
IAlerttype and its implementations.Contributes to #14640
For methods that currently throw an exception of
nullis passed, that has been replaced with argument validation ahead of time. Likewise forascasts that would benull references. Other than that, no behavior changes are present.Motivation and Context
Nullable reference types aim to fix the billion dollar mistake.
Types of changes
Checklist
PR Type
enhancement, error handling
Description
ArgumentNullExceptionchecks for methods that accept nullable parameters to enhance error handling.PRDescriptionHeader.CHANGES_WALKTHROUGH
18 files
Alert.cs
Enable nullable reference types and improve null handling in Alertclassdotnet/src/webdriver/Alert.cs
commandResponse.Value.ToString().ArgumentNullExceptionforSendKeysmethod.Cookie.cs
Enable nullable reference types and improve null handling in Cookieclassdotnet/src/webdriver/Cookie.cs
ArgumentNullExceptionfor null dictionary inFromDictionary.CookieJar.cs
Enable nullable reference types and improve null handling in CookieJarclassdotnet/src/webdriver/CookieJar.cs
ArgumentNullExceptionfor null parameters.ICookieJar.cs
Enable nullable reference types and update ICookieJar interfacedotnet/src/webdriver/ICookieJar.cs
ILogs.cs
Enable nullable reference types and improve error handling in ILogsinterfacedotnet/src/webdriver/ILogs.cs
ArgumentNullExceptionforGetLogmethod.INetwork.cs
Enable nullable reference types and improve null handling in INetworkinterfacedotnet/src/webdriver/INetwork.cs
ArgumentNullExceptionforAddRequestHandler.IOptions.cs
Enable nullable reference types in IOptions interfacedotnet/src/webdriver/IOptions.cs
ITargetLocator.cs
Enable nullable reference types and improve error handling inITargetLocator interfacedotnet/src/webdriver/ITargetLocator.cs
ArgumentNullExceptionforWindowmethod.ITimeouts.cs
Enable nullable reference types in ITimeouts interfacedotnet/src/webdriver/ITimeouts.cs
IWindow.cs
Enable nullable reference types in IWindow interfacedotnet/src/webdriver/IWindow.cs
ReturnedCookie.cs
Enable nullable reference types and update ReturnedCookie classdotnet/src/webdriver/Internal/ReturnedCookie.cs
LogEntry.cs
Enable nullable reference types and improve error handling in LogEntryclassdotnet/src/webdriver/LogEntry.cs
ArgumentNullExceptionforFromDictionarymethod.Logs.cs
Enable nullable reference types and improve error handling in Logsclassdotnet/src/webdriver/Logs.cs
ArgumentNullExceptionforGetLogmethod.NetworkManager.cs
Enable nullable reference types and improve null handling inNetworkManager classdotnet/src/webdriver/NetworkManager.cs
ArgumentNullExceptionforAddRequestHandler.OptionsManager.cs
Enable nullable reference types in OptionsManager classdotnet/src/webdriver/OptionsManager.cs
TargetLocator.cs
Enable nullable reference types and improve error handling inTargetLocator classdotnet/src/webdriver/TargetLocator.cs
ArgumentNullExceptionforFrameandWindowmethods.Timeouts.cs
Enable nullable reference types in Timeouts classdotnet/src/webdriver/Timeouts.cs
Window.cs
Enable nullable reference types and update Window classdotnet/src/webdriver/Window.cs