Skip to content
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

Add NavigableObject.wrap. Deprecate MapWriter.EMPTY and MapWriterMap. #3148

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Jan 31, 2025

Introduce NavigableObject.wrap to coerce its arg to a NavigableObject. Maybe call this method "of"?
Deprecate MapWriter.EMPTY; don't need it anymore (due to the above); was only used once.
Enhance Utils to not need MapWriterMap for its functions, and to slightly optimize for SimpleOrderedMap becoming a Map soon.
Deprecate MapWriterMap. Ultimately may simply make package scope and maybe rename to orient itself around it's NavigableObject-ness, which is what it's only used for, after the changes here.

No JIRA: too internal; low impact.

@dsmiley
Copy link
Contributor Author

dsmiley commented Feb 9, 2025

Will merge in a few days.

@dsmiley dsmiley merged commit d911c1a into apache:main Feb 12, 2025
4 checks passed
@dsmiley dsmiley deleted the NavigableObject.wrap branch February 12, 2025 22:12
dsmiley added a commit that referenced this pull request Feb 12, 2025
…#3148)

Introduce NavigableObject.wrap to coerce its arg to a NavigableObject.
Deprecate MapWriter.EMPTY; don't need it anymore (due to the above); was only used once.
Enhance Utils to not need MapWriterMap for its functions, and to slightly optimize for SimpleOrderedMap now being a Map.
Deprecate MapWriterMap. Ultimately may simply make package scope and maybe rename to orient itself around its NavigableObject-ness, which is what it's only used for, after the changes here.

(cherry picked from commit d911c1a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant