Skip to content

Commit 67eb2a1

Browse files
committed
Update ClientMethodWriter.java
1 parent 2661f79 commit 67eb2a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-generator-client/src/main/java/io/avaje/http/generator/client/ClientMethodWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ private void writeResponse(UType type) {
141141
if (isList(mainType)) {
142142
writer.append(".list(");
143143
writeGeneric(param1);
144+
writer.append(");").eol();
144145
} else if (isStream(mainType)) {
145146
writer.append(".stream(");
146147
writeGeneric(param1);
@@ -177,7 +178,6 @@ void writeGeneric(UType type) {
177178
} else {
178179
writer.append("%s.class", Util.shortName(type.mainType()));
179180
}
180-
writer.append(");").eol();
181181
}
182182

183183
private void writeQueryParams(PathSegments pathSegments) {
@@ -253,6 +253,7 @@ private void writeBody() {
253253
if (paramType == ParamType.BODY) {
254254
writer.append(" .body(%s, ", param.name());
255255
writeGeneric(param.utype());
256+
writer.append(")").eol();
256257
}
257258
}
258259
}

0 commit comments

Comments
 (0)