Skip to content

Commit

Permalink
Fix for Issue #4840 [BUG][JAVA][spring-mvc] Generated Code for Map of…
Browse files Browse the repository at this point in the history
… Maps Return Type does not compile
  • Loading branch information
emileonhardt committed Feb 7, 2020
1 parent 9adfedb commit 3b3aeab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ private void doDataTypeAssignment(String returnType, DataTypeAssigner dataTypeAs
} else if (rt.startsWith("Map")) {
int end = rt.lastIndexOf(">");
if (end > 0) {
dataTypeAssigner.setReturnType(rt.substring("Map<".length(), end).split(",")[1].trim());
dataTypeAssigner.setReturnType(rt.substring("Map<".length(), end).split(",", 2)[1].trim());
dataTypeAssigner.setReturnContainer("Map");
}
} else if (rt.startsWith("Set")) {
Expand Down

0 comments on commit 3b3aeab

Please sign in to comment.