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

Replace getCurrentValue()/setCurrentValue() with currentValue()/assignCurrentValue() in JsonParser/JsonGenerator #674

Closed
cowtowncoder opened this issue Jan 28, 2021 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Jan 28, 2021

As part of API clean up for Jackson 3.0, we are reducing use of getter/setter style for accessing state/metadata (to replace, for example, getCurrentName() and getCurrentToken() with currentName()/currentToken()).

Similar to earlier changes, it makes sense to add currentValue() to eventually replace getCurrentValue().
Similarly add assignCurrentValue(Object) to eventually replace setCurrentValue(Object).

For 2.13 we will add the new method, make it delegate to old one at base parser/generator level: for 2.14 or later we may deprecated old method. 3.0 will only have the new method.

cowtowncoder added a commit that referenced this issue Jan 28, 2021
@cowtowncoder cowtowncoder changed the title Replace getCurrentValue() with currentValue() in JsonParser/JsonGenerator Replace getCurrentValue()/setCurrentValue() with currentValue()/assignCurrentValue() in JsonParser/JsonGenerator Jan 28, 2021
cowtowncoder added a commit that referenced this issue Jan 28, 2021
@cowtowncoder cowtowncoder added this to the 2.13.0 milestone Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant