-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] JSpecify annotations for Credential
and MBean
#16481
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
1879c49
to
756b7a9
Compare
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.grid.jmx.MBean
org.openqa.selenium.virtualauthenticator.Credential
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify null-safety annotations to
MBean
classAdd JSpecify null-safety annotations to
Credential
classImprove null-safety handling in attribute and operation invocation methods
Add defensive null checks for map lookups in getter/setter/invoke operations
Diagram Walkthrough
File Walkthrough
MBean.java
Add JSpecify null-safety annotations and null checks
java/src/org/openqa/selenium/grid/jmx/MBean.java
@NullMarked
class-level annotation for null-safety@Nullable
annotations to method return types and parameters(getter, setter, and various finder methods)
getAttribute()
,setAttribute()
, andinvoke()
methods to handle null map lookupsAttributeInfo
andOperationInfo
handlingCredential.java
Add JSpecify null-safety annotations to Credential
java/src/org/openqa/selenium/virtualauthenticator/Credential.java
@Nullable
annotation torpId
field andgetRpId()
method returntype
@Nullable
annotation totoMap()
method return type for map valuesrpId