Skip to content

Unconditionally call TypeIdResolver.getDescForKnownTypeIds #1335

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,11 @@ protected JavaType _handleUnknownTypeId(DeserializationContext ctxt, String type
TypeIdResolver idResolver, JavaType baseType)
throws IOException
{
String extraDesc;
if (idResolver instanceof TypeIdResolverBase) {
extraDesc = ((TypeIdResolverBase) idResolver).getDescForKnownTypeIds();
if (extraDesc == null) {
extraDesc = "known type ids are not statically known";
} else {
extraDesc = "known type ids = " + extraDesc;
}
String extraDesc = idResolver.getDescForKnownTypeIds();
if (extraDesc == null) {
extraDesc = "known type ids are not statically known";
} else {
extraDesc = null;
extraDesc = "known type ids = " + extraDesc;
}
return ctxt.handleUnknownTypeId(_baseType, typeId, idResolver, extraDesc);
}
Expand Down