[java] Restore HttpCommandExecutor client and httpClientFactory fields as deprecated - #18098
Conversation
…s as deprecated #18038 made the public `client` field protected and removed the protected `httpClientFactory` field without a deprecation period. Appium's AppiumDriver and AppiumCommandExecutor use both, so released Appium versions would fail at runtime with Selenium 4.50.0. Restore both fields, deprecated for removal, so they can be retired through the deprecation policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Summary by QodoRestore deprecated HttpCommandExecutor fields for Appium compatibility
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
… in 4.52 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Code review by qodo was updated up to the latest commit fb77ffd |
🔗 Related Issues
Follow-up to #18038, which broke the Appium Java client build (CI run).
💥 What does this PR do?
#18038 made
HttpCommandExecutor.clientprotected and removedhttpClientFactorywithout deprecating them first. Appium uses both, so current Appium releases would fail at runtime with Selenium 4.50.This PR brings both fields back as deprecated, to be changed in 4.52:
clientis public again, and becomes protected in 4.52.httpClientFactoryis back, and is removed in 4.52.🔧 Implementation Notes
nullwhen the executor is created from anHttpClient.HttpCommandExecutorTestchecks the field visibility and the factory value for each constructor.🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes
🤖 Generated with Claude Code