refactor: rename C++-style m_/s_ field prefixes to Java camelCase - #146
refactor: rename C++-style m_/s_ field prefixes to Java camelCase#146shalk wants to merge 1 commit into
Conversation
apollo-core and apollo-client carried a legacy Ctrip/C++ (Hungarian notation) field naming convention using m_/s_ prefixes, inconsistent with idiomatic Java. Strip the prefixes across both modules' main and test sources, and update the handful of cross-module reflection lookups (mockserver, log4j2 plugin, config-data, compat-tests) that referenced the old field names by string literal. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for the contribution. We don't plan to merge this refactor. While removing the More importantly, the change is not limited to private implementation details. It renames several The PR also needs to update field-name-based reflection in Given the limited benefit and the compatibility and maintenance risks of such a broad rename, we prefer to keep the existing field names and close this PR. Thanks again for taking the time to prepare it. |
|
@shalk This pull request has conflicts with the target branch. Please resolve them and update the branch before merging. |
apollo-core and apollo-client carried a legacy Ctrip/C++ (Hungarian notation) field naming convention using m_/s_ prefixes, inconsistent with idiomatic Java. Strip the prefixes across both modules' main and test sources, and update the handful of cross-module reflection lookups (mockserver, log4j2 plugin, config-data, compat-tests) that referenced the old field names by string literal.
What's the purpose of this PR
XXXXX
Which issue(s) this PR fixes:
Fixes #
Brief changelog
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean testto make sure this pull request doesn't break anything.CHANGESlog.