- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.6k
          [java] JSpecify annotations for Response SessionId HttpSessionId
          #16490
        
          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 | ||||||||||||||||||||||||||
| 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.HttpSessionIdorg.openqa.selenium.remote.Responseorg.openqa.selenium.remote.SessionId🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify
@NullMarkedannotation to three remote classesMark nullable fields and parameters with
@NullableannotationImprove null-safety documentation for
Response,SessionId,HttpSessionIdDiagram Walkthrough
File Walkthrough
HttpSessionId.java
Add JSpecify null-safety annotationjava/src/org/openqa/selenium/remote/HttpSessionId.java
@NullMarkedclass-level annotationorg.jspecify.annotations.NullMarkedResponse.java
Add comprehensive null-safety annotationsjava/src/org/openqa/selenium/remote/Response.java
@NullMarkedclass-level annotation@Nullable:value,sessionId,status,state@Nullableforgetters, setters, and
equals()methodorg.jspecify.annotations.NullMarkedandNullableSessionId.java
Add JSpecify null-safety annotationsjava/src/org/openqa/selenium/remote/SessionId.java
@NullMarkedclass-level annotationequals()method parameter with@Nullableorg.jspecify.annotations.NullMarkedandNullable