You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -282,20 +282,20 @@ public class {{classname}} {
282
282
{{! We could also manipulate the inputstream to remove that bad character, but string manipulation is easier to read and this codepath is not asyncronus so we do not gain anything by reading the stream later. }}
283
283
{{! This fix does make it unsuitable for large amounts of data because `InputStream.readAllbytes` is not meant for it, but a syncronus client is already not the right tool for that.}}
284
284
if (localVarResponse.body() == null) {
285
-
return new ApiResponse<{{{returnType}}}>(
286
-
localVarResponse.statusCode(),
287
-
localVarResponse.headers().map(),
288
-
null
289
-
);
285
+
return new ApiResponse<{{{returnType}}}>(
286
+
localVarResponse.statusCode(),
287
+
localVarResponse.headers().map(),
288
+
null
289
+
);
290
290
}
291
291
292
292
String responseBody = new String(localVarResponse.body().readAllBytes());
293
293
localVarResponse.body().close();
294
294
295
295
return new ApiResponse<{{{returnType}}}>(
296
-
localVarResponse.statusCode(),
297
-
localVarResponse.headers().map(),
298
-
responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference<{{{returnType}}}>() {})
296
+
localVarResponse.statusCode(),
297
+
localVarResponse.headers().map(),
298
+
responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference<{{{returnType}}}>() {})
0 commit comments