-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support alternate radixes for numeric values #5445
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
base: 3.x
Are you sure you want to change the base?
Conversation
src/main/java/tools/jackson/databind/deser/std/StdDeserializer.java
Outdated
Show resolved
Hide resolved
src/main/java/tools/jackson/databind/introspect/ConcreteBeanPropertyBase.java
Outdated
Show resolved
Hide resolved
src/main/java/tools/jackson/databind/introspect/ConcreteBeanPropertyBase.java
Show resolved
Hide resolved
| JsonFormat.Value v2 = null; | ||
| AnnotationIntrospector intr = config.getAnnotationIntrospector(); | ||
| if (intr != null) { | ||
| AnnotatedMember member = getMember(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we mixing in member annotations now -- this changes semantics of the method.
EDIT: never mind, that was done via findFormatOverrides() which does about same. But maybe call that method instead of inlining the logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Do not remember why I inlined in #5317
src/main/java/tools/jackson/databind/deser/std/FromStringWithRadixToNumberDeserializer.java
Outdated
Show resolved
Hide resolved
1 similar comment
cowtowncoder
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@tiger9800 Phew! I think this is about ready for me to merge. Great job, I like how things evolved. Will let this simmer until tomorrow and then hope to merge. |
Add support for radices using the added to
JsonFormatradix attribute in FasterXML/jackson-annotations#321. The initial work for the PR was done in issue #5317, and the original request was #221.