mark wait.until as non-nullable#17007
Conversation
User descriptionThey always return true/false, WebDriver or WebElement. They never return null. 🔗 Related IssuesFixes #16970 Adds 🔄 Types of changes
PR TypeEnhancement Description
Diagram Walkthroughflowchart LR
A["FluentWait/Wait API"] -->|Add @NullMarked| B["Package-level null safety"]
A -->|Mark until() return| C["Non-nullable return values"]
A -->|Add @Nullable| D["Exception causes & suppliers"]
E["getCapabilities() methods"] -->|Add @NonNull| F["Non-nullable capabilities"]
G["withMessage() methods"] -->|Add validation| H["Enforce non-null inputs"]
|
| Relevant files | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 9 files
| ||||||||||||||||||
| Tests | |||||||||||||||||||
| Documentation | 1 files
| ||||||||||||||||||
| Configuration changes | 1 files
|
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 |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
50d42d7 to
8375807
Compare
They always return true/false, WebDriver or Webelement. They never return null.
8375807 to
e89e912
Compare
They always return true/false, WebDriver or WebElement. They never return null.
🔗 Related Issues
Fixes #16970
Adds
@NullMarkedannotation toWait,FluentWaitetc.@TWiStErRob
🔄 Types of changes