-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] JSpecify annotations for ExpectedCondition
#16489
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 Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
|
Thank you, @mk868 for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
🔗 Related Issues
Related #14291
💥 What does this PR do?
JSpecify annotations added to the:
org.openqa.selenium.support.ui.ExpectedConditionorg.openqa.selenium.support.ui.ExpectedConditions🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify null-safety annotations to
ExpectedConditioninterfaceAdd JSpecify null-safety annotations to
ExpectedConditionsutility classMark methods returning nullable types with
@NullableannotationAdd null-check in
urlMatches()method to handle nullable URLDiagram Walkthrough
File Walkthrough
ExpectedCondition.java
Add JSpecify annotations to ExpectedCondition interfacejava/src/org/openqa/selenium/support/ui/ExpectedCondition.java
@NullMarkedclass-level annotation for null-safety@NullMarked,@Nullable)T extends @Nullable Objectto allownullable return types
ExpectedConditions.java
Add JSpecify null-safety annotations throughout ExpectedConditionsjava/src/org/openqa/selenium/support/ui/ExpectedConditions.java
@NullMarkedclass-level annotation for null-safety@NullMarked,@Nullable)@Nullablewhere methods can returnnull
@Nullableannotation (e.g.,currentTitle,currentUrl,currentValue)urlMatches()method before callingpattern.matcher(currentUrl)BUILD.bazel
Add JSpecify dependency to build configurationjava/src/org/openqa/selenium/support/ui/BUILD.bazel
org.jspecify:jspecifyartifact dependency to support JSpecifyannotations