-
-
Notifications
You must be signed in to change notification settings - Fork 331
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 requireTypeIdForSubtypes
property for JsonTypeInfo.Value
, backporting from Jackson 3.0
#229
Add requireTypeIdForSubtypes
property for JsonTypeInfo.Value
, backporting from Jackson 3.0
#229
Conversation
hashCode = 31 * hashCode + (_requireTypeIdForSubtypes ? 11 : -17); | ||
hashCode = 31 * hashCode + (_idVisible ? 11 : -17); | ||
return hashCode; | ||
} |
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.
Since baseline is JDK 6, I refered to Objects.hashcode() implementation in JDK7 which internally use Arrays.hashcode()
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.
I guess we can merge this implementation once more, make master to use this same implementation.
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.
SGTM
return false; | ||
} | ||
return value1.equals(value2); | ||
} |
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.
Same as,
jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java
Line 890 in c4dec4b
private static <T> boolean _equal(T value1, T value2) |
I guess we can merge this implementation once more, make master to use this same implementation.
Same here also.
Thank you again @JooHyukKim ! |
As discussed in #226