Skip to content

Commit

Permalink
Wrong index of ParameterizedType argument of Map when register type t…
Browse files Browse the repository at this point in the history
…o be generated in JacksonCodeGenerator
  • Loading branch information
tran4774 authored Nov 16, 2024
1 parent 267d7ff commit ee68fdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected FieldKind registerTypeToBeGenerated(Type fieldType, String typeName) {
}
}
if (pType.arguments().size() == 2 && typeName.equals("java.util.Map")) {
registerTypeToBeGenerated(pType.arguments().get(1));
registerTypeToBeGenerated(pType.arguments().get(0));
registerTypeToBeGenerated(pType.arguments().get(1));
return FieldKind.MAP;
}
Expand Down

0 comments on commit ee68fdb

Please sign in to comment.