[java] JSpecify annotations for Credential and MBean#16481
[java] JSpecify annotations for Credential and MBean#16481diemol merged 1 commit intoSeleniumHQ:trunkfrom
Credential and MBean#16481Conversation
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.MBeanorg.openqa.selenium.virtualauthenticator.Credential🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify null-safety annotations to
MBeanclassAdd JSpecify null-safety annotations to
CredentialclassImprove 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 checksjava/src/org/openqa/selenium/grid/jmx/MBean.java
@NullMarkedclass-level annotation for null-safety@Nullableannotations to method return types and parameters(getter, setter, and various finder methods)
getAttribute(),setAttribute(), andinvoke()methods to handle null map lookupsAttributeInfoandOperationInfohandlingCredential.java
Add JSpecify null-safety annotations to Credentialjava/src/org/openqa/selenium/virtualauthenticator/Credential.java
@Nullableannotation torpIdfield andgetRpId()method returntype
@Nullableannotation totoMap()method return type for map valuesrpId