Skip to content

Commit

Permalink
Fix for Issue OpenAPITools#4840 [BUG][JAVA][spring-mvc] Generated Cod…
Browse files Browse the repository at this point in the history
…e for Map of Maps Return Type does not compile (OpenAPITools#5240)
  • Loading branch information
emileonhardt authored and MikailBag committed May 31, 2020
1 parent 7b6e32a commit 6ae100d
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 6ae100d

Please sign in to comment.