moved count

This commit is contained in:
Tony Tam 2015-03-31 21:00:15 -07:00
parent fe3c3cc8bc
commit 1385a157e9

View File

@ -672,11 +672,11 @@ public class DefaultCodegen {
for(String key: operation.getConsumes()) {
Map<String, String> mediaType = new HashMap<String, String>();
mediaType.put("mediaType", key);
count += 1;
if (count < operation.getConsumes().size())
mediaType.put("hasMore", "true");
else
mediaType.put("hasMore", null);
count += 1;
c.add(mediaType);
}
op.consumes = c;