Skip to content

Commit a90c0e7

Browse files
committed
call promise::handle
1 parent 38eee55 commit a90c0e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • modules/openapi-generator/src/main/resources/Java/libraries/vertx

modules/openapi-generator/src/main/resources/Java/libraries/vertx/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface {{classname}} {
2828
{{/isDeprecated}}
2929
default Future<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){
3030
Promise<{{{returnType}}}{{^returnType}}Void{{/returnType}}> promise = Promise.promise();
31-
{{operationId}}({{#allParams}}{{paramName}}, {{/allParams}}promise);
31+
{{operationId}}({{#allParams}}{{paramName}}, {{/allParams}}promise::handle);
3232
return promise.future();
3333
}
3434

@@ -44,7 +44,7 @@ public interface {{classname}} {
4444
{{/isDeprecated}}
4545
default Future<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}ApiClient.AuthInfo authInfo){
4646
Promise<{{{returnType}}}{{^returnType}}Void{{/returnType}}> promise = Promise.promise();
47-
{{operationId}}({{#allParams}}{{paramName}}, {{/allParams}}authInfo, promise);
47+
{{operationId}}({{#allParams}}{{paramName}}, {{/allParams}}authInfo, promise::handle);
4848
return promise.future();
4949
}
5050

0 commit comments

Comments
 (0)