-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] added jspecify annotations Nullable and NullMarked to exception classes #16024
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
base: trunk
Are you sure you want to change the base?
[java] added jspecify annotations Nullable and NullMarked to exception classes #16024
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
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.
Thank you! @iampopovich
|
@pujagani check please🙏 |
User description
🔗 Related Issues
partially fixes #14291
💥 What does this PR do?
This pull request adds annotations to classes that extend WebDriverException.
To make the changes easier to review, I have split the task of annotating all exception classes into several smaller pull requests. This PR contains updates for 5-7 classes.
🔧 Implementation Notes
This pull request introduces updates to exception classes in the Selenium Java package to improve null safety by integrating
jspecifyannotations. The changes include marking classes with@NullMarkedand updating method parameters to use@Nullablewhere applicable.💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add
@NullMarkedannotations to 7 exception classesAdd
@Nullableannotations to constructor parametersImprove null safety with jspecify annotations
Part of larger effort to annotate all exception classes
Changes diagram
Changes walkthrough 📝
7 files
Add null safety annotationsAdd null safety annotationsAdd nullable parameter annotationsAdd null safety annotationsAdd null safety annotationsAdd null safety annotationsAdd null safety annotations