Aligned with codegen changes
@@ -4,7 +4,7 @@ import io.vertx.codegen.ParamInfo;
import io.vertx.codegen.type.*;
import io.vertx.ext.web.api.RequestParameter;
import io.vertx.ext.web.api.generator.impl.model.WebApiProxyMethodInfo;
-import io.vertx.codegen.utils.CodeWriter;
+import io.vertx.codegen.writer.CodeWriter;
import io.vertx.serviceproxy.generator.GeneratorUtils;
import io.vertx.serviceproxy.generator.ServiceProxyHandlerGen;
import io.vertx.serviceproxy.generator.model.ProxyMethodInfo;
@@ -58,13 +58,12 @@ public class WebApiProxyHandlerGen extends ServiceProxyHandlerGen {
.indent()
.code("service." + m.getName() + "(")
.indent();
- writer.writeArray(
- ",\n" + writer.indentation(),
+ writer.writeSeq(
Stream.concat(
((WebApiProxyMethodInfo)m).getParamsToExtract().stream().map(this::generateJsonParamExtractFromContext),
Stream.of("context", serviceCallHandler)
- ).collect(Collectors.toList()),
- String::toString
+ ),
+ ",\n" + writer.indentation()
);
writer.unindent();
writer.write(");\n");
