-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] JSpecify annotations for CommandInfo CommandPayload `Drive…
#16491
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?
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 |
|||||||||||||||||||||||||
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.remote.CommandInfoorg.openqa.selenium.remote.CommandPayloadorg.openqa.selenium.remote.DriverCommand🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify @NullMarked annotations to remote command classes
Mark nullable parameters with @nullable in CommandPayload and DriverCommand
Update Map type hints to explicitly denote nullable values
Diagram Walkthrough
File Walkthrough
CommandInfo.java
Add JSpecify null-safety annotation to CommandInfojava/src/org/openqa/selenium/remote/CommandInfo.java
org.jspecify.annotations.NullMarked@NullMarkedannotation to class declarationCommandPayload.java
Add JSpecify annotations and nullable Map types to CommandPayloadjava/src/org/openqa/selenium/remote/CommandPayload.java
@NullMarkedand@Nullableannotations@NullMarkedto class declarationparametersfield type toMap
Object>Update constructor parameter type with nullable Map value annotation
UpdategetParameters()return type with nullable Map value annotationDriverCommand.java
Add JSpecify annotations to DriverCommand interfacejava/src/org/openqa/selenium/remote/DriverCommand.java
@NullMarkedand@Nullableannotations@NullMarkedto interface declarationframeparameter as@NullableinSWITCH_TO_FRAME()method