-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] JSpecify annotations for FileDetector
#16482
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:
|
||||||||||||
345db4f to
6911765
Compare
User description
🔗 Related Issues
Related #14291
💥 What does this PR do?
JSpecify annotations added to the:
org.openqa.selenium.remote.FileDetectororg.openqa.selenium.remote.LocalFileDetectororg.openqa.selenium.remote.UselessFileDetector🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement, Documentation
Description
Add JSpecify null-safety annotations to FileDetector interface
Annotate LocalFileDetector and UselessFileDetector implementations
Mark getLocalFile() return type as @nullable
Apply @NullMarked to interface and implementations for consistency
Diagram Walkthrough
File Walkthrough
FileDetector.java
Add JSpecify annotations to FileDetector interfacejava/src/org/openqa/selenium/remote/FileDetector.java
@NullMarkedand@Nullable)@NullMarkedclass-level annotation to interfacegetLocalFile()return type with@NullableLocalFileDetector.java
Add JSpecify annotations to LocalFileDetectorjava/src/org/openqa/selenium/remote/LocalFileDetector.java
@NullMarkedand@Nullable)@NullMarkedclass-level annotationgetLocalFile()return type with@NullableUselessFileDetector.java
Add JSpecify null-safety annotation to UselessFileDetectorjava/src/org/openqa/selenium/remote/UselessFileDetector.java
@NullableannotationgetLocalFile()return type with@Nullable