Skip to content

Commit fd4dd37

Browse files
authored
Fixes #10351
1 parent bdb4edd commit fd4dd37

File tree

1 file changed

+4
-4
lines changed
  • modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson

1 file changed

+4
-4
lines changed

modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/api.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class {{classname}} {
114114
{{localVariablePrefix}}localVarHeaderParams.put("Content-Type", {{localVariablePrefix}}localVarContentType);
115115

116116
if(progressListener != null) {
117-
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
117+
{{localVariablePrefix}}apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
118118
@Override
119119
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
120120
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
@@ -237,7 +237,7 @@ public class {{classname}} {
237237
{{#isDeprecated}}
238238
@Deprecated
239239
{{/isDeprecated}}
240-
public com.squareup.okhttp.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{localVariablePrefix}}callback) throws ApiException {
240+
public com.squareup.okhttp.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> callback) throws ApiException {
241241
242242
ProgressResponseBody.ProgressListener progressListener = null;
243243
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -260,9 +260,9 @@ public class {{classname}} {
260260

261261
com.squareup.okhttp.Call {{localVariablePrefix}}call = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}progressListener, progressRequestListener);
262262
{{#returnType}}Type {{localVariablePrefix}}localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType();
263-
{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, {{localVariablePrefix}}localVarReturnType, {{localVariablePrefix}}callback);{{/returnType}}{{^returnType}}{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, {{localVariablePrefix}}callback);{{/returnType}}
263+
{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, {{localVariablePrefix}}localVarReturnType, callback);{{/returnType}}{{^returnType}}{{localVariablePrefix}}apiClient.executeAsync({{localVariablePrefix}}call, callback);{{/returnType}}
264264
return {{localVariablePrefix}}call;
265265
}
266266
{{/operation}}
267267
}
268-
{{/operations}}
268+
{{/operations}}

0 commit comments

Comments
 (0)