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

Rename JsonParser.getText() as .getString() [JSTEP-6] #1378

Closed
cowtowncoder opened this issue Jan 3, 2025 · 0 comments
Closed

Rename JsonParser.getText() as .getString() [JSTEP-6] #1378

cowtowncoder opened this issue Jan 3, 2025 · 0 comments
Labels
3.0 Issue planned for initial 3.0 release
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Jan 3, 2025

As per JSTEP-6, we will rename references of "Text" in accessors for (JSON) String values to use "String" instead.
In some cases old method will be left deprecated but available (getText() f.ex), whereas in others method is just renamed (new one added, old removed).

Specifically:

  • getText(): deprecate, add getString() as replacement
  • getText(Writer): rename as getString(Writer) (no deprecated method left)
  • getTextCharacters(), getTextLength(), getTextOffset(): deprecated, add new variants with name getStringXxx()
  • hasTextCharacters(): rename as hasStringCharacters() (no deprecated method left)
  • nextTextValue(): rename as nextStringValue() (no deprecated method left)
@cowtowncoder cowtowncoder added the 3.0 Issue planned for initial 3.0 release label Jan 3, 2025
@cowtowncoder cowtowncoder added this to the 3.0.0 milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 Issue planned for initial 3.0 release
Projects
None yet
Development

No branches or pull requests

1 participant