-
- Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] Feat 14291/jspecify nullable annotation chrome driver såervice #15998
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
[java] Feat 14291/jspecify nullable annotation chrome driver såervice #15998
The head ref may contain hidden characters: "feat-14291/jspecify-nullable-annotation_chrome_driver_s\u00E5ervice"
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…ome_driver_såervice
User description
🔗 Related Issues
fixes #14291
💥 What does this PR do?
This pull request introduces changes to improve nullability annotations in the
ChromeDriverService
class and its associated methods, enhancing type safety and clarity in handling nullable parameters. Additionally, a dependency onorg_jspecify_jspecify
is added to the Bazel build file to support these annotations.Nullability Enhancements in
ChromeDriverService
:ChromeDriverService
constructor and several builder methods to include@Nullable
annotations for parameters that can accept null values, ensuring better clarity and type safety. (java/src/org/openqa/selenium/chrome/ChromeDriverService.java
) [1] [2] [3] [4] [5]@Nullable
annotations to fields in theBuilder
class to reflect their potential nullability. (java/src/org/openqa/selenium/chrome/ChromeDriverService.java
)Dependency Updates:
@maven//:org_jspecify_jspecify
in the Bazel build file to support@Nullable
annotations. (java/src/org/openqa/selenium/chrome/BUILD.bazel
)Import Statements:
@Nullable
: Included the necessary import statement fororg.jspecify.annotations.Nullable
in theChromeDriverService
class. (java/src/org/openqa/selenium/chrome/ChromeDriverService.java
)🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify nullable annotations to ChromeDriverService parameters
Update constructor and builder methods with @nullable annotations
Add JSpecify dependency to Bazel build configuration
Improve type safety for nullable parameters
Changes diagram
Changes walkthrough 📝
ChromeDriverService.java
Add nullable annotations to parameters and fields
java/src/org/openqa/selenium/chrome/ChromeDriverService.java
environment)
readableTimestamp, etc.)
readableTimestamp)
BUILD.bazel
Add JSpecify dependency
java/src/org/openqa/selenium/chrome/BUILD.bazel