@@ -19,47 +19,47 @@ public interface PetApi {
1919
2020 default Future <Void > addPet (@ javax .annotation .Nonnull Pet pet ){
2121 Promise <Void > promise = Promise .promise ();
22- addPet (pet , promise );
22+ addPet (pet , promise :: handle );
2323 return promise .future ();
2424 }
2525
2626 void addPet (@ javax .annotation .Nonnull Pet pet , ApiClient .AuthInfo authInfo , Handler <AsyncResult <Void >> handler );
2727
2828 default Future <Void > addPet (@ javax .annotation .Nonnull Pet pet , ApiClient .AuthInfo authInfo ){
2929 Promise <Void > promise = Promise .promise ();
30- addPet (pet , authInfo , promise );
30+ addPet (pet , authInfo , promise :: handle );
3131 return promise .future ();
3232 }
3333
3434 void deletePet (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String apiKey , Handler <AsyncResult <Void >> handler );
3535
3636 default Future <Void > deletePet (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String apiKey ){
3737 Promise <Void > promise = Promise .promise ();
38- deletePet (petId , apiKey , promise );
38+ deletePet (petId , apiKey , promise :: handle );
3939 return promise .future ();
4040 }
4141
4242 void deletePet (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String apiKey , ApiClient .AuthInfo authInfo , Handler <AsyncResult <Void >> handler );
4343
4444 default Future <Void > deletePet (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String apiKey , ApiClient .AuthInfo authInfo ){
4545 Promise <Void > promise = Promise .promise ();
46- deletePet (petId , apiKey , authInfo , promise );
46+ deletePet (petId , apiKey , authInfo , promise :: handle );
4747 return promise .future ();
4848 }
4949
5050 void findPetsByStatus (@ javax .annotation .Nonnull List <String > status , Handler <AsyncResult <List <Pet >>> handler );
5151
5252 default Future <List <Pet >> findPetsByStatus (@ javax .annotation .Nonnull List <String > status ){
5353 Promise <List <Pet >> promise = Promise .promise ();
54- findPetsByStatus (status , promise );
54+ findPetsByStatus (status , promise :: handle );
5555 return promise .future ();
5656 }
5757
5858 void findPetsByStatus (@ javax .annotation .Nonnull List <String > status , ApiClient .AuthInfo authInfo , Handler <AsyncResult <List <Pet >>> handler );
5959
6060 default Future <List <Pet >> findPetsByStatus (@ javax .annotation .Nonnull List <String > status , ApiClient .AuthInfo authInfo ){
6161 Promise <List <Pet >> promise = Promise .promise ();
62- findPetsByStatus (status , authInfo , promise );
62+ findPetsByStatus (status , authInfo , promise :: handle );
6363 return promise .future ();
6464 }
6565
@@ -69,7 +69,7 @@ default Future<List<Pet>> findPetsByStatus(@javax.annotation.Nonnull List<String
6969 @ Deprecated
7070 default Future <Set <Pet >> findPetsByTags (@ javax .annotation .Nonnull Set <String > tags ){
7171 Promise <Set <Pet >> promise = Promise .promise ();
72- findPetsByTags (tags , promise );
72+ findPetsByTags (tags , promise :: handle );
7373 return promise .future ();
7474 }
7575
@@ -79,87 +79,87 @@ default Future<Set<Pet>> findPetsByTags(@javax.annotation.Nonnull Set<String> ta
7979 @ Deprecated
8080 default Future <Set <Pet >> findPetsByTags (@ javax .annotation .Nonnull Set <String > tags , ApiClient .AuthInfo authInfo ){
8181 Promise <Set <Pet >> promise = Promise .promise ();
82- findPetsByTags (tags , authInfo , promise );
82+ findPetsByTags (tags , authInfo , promise :: handle );
8383 return promise .future ();
8484 }
8585
8686 void getPetById (@ javax .annotation .Nonnull Long petId , Handler <AsyncResult <Pet >> handler );
8787
8888 default Future <Pet > getPetById (@ javax .annotation .Nonnull Long petId ){
8989 Promise <Pet > promise = Promise .promise ();
90- getPetById (petId , promise );
90+ getPetById (petId , promise :: handle );
9191 return promise .future ();
9292 }
9393
9494 void getPetById (@ javax .annotation .Nonnull Long petId , ApiClient .AuthInfo authInfo , Handler <AsyncResult <Pet >> handler );
9595
9696 default Future <Pet > getPetById (@ javax .annotation .Nonnull Long petId , ApiClient .AuthInfo authInfo ){
9797 Promise <Pet > promise = Promise .promise ();
98- getPetById (petId , authInfo , promise );
98+ getPetById (petId , authInfo , promise :: handle );
9999 return promise .future ();
100100 }
101101
102102 void updatePet (@ javax .annotation .Nonnull Pet pet , Handler <AsyncResult <Void >> handler );
103103
104104 default Future <Void > updatePet (@ javax .annotation .Nonnull Pet pet ){
105105 Promise <Void > promise = Promise .promise ();
106- updatePet (pet , promise );
106+ updatePet (pet , promise :: handle );
107107 return promise .future ();
108108 }
109109
110110 void updatePet (@ javax .annotation .Nonnull Pet pet , ApiClient .AuthInfo authInfo , Handler <AsyncResult <Void >> handler );
111111
112112 default Future <Void > updatePet (@ javax .annotation .Nonnull Pet pet , ApiClient .AuthInfo authInfo ){
113113 Promise <Void > promise = Promise .promise ();
114- updatePet (pet , authInfo , promise );
114+ updatePet (pet , authInfo , promise :: handle );
115115 return promise .future ();
116116 }
117117
118118 void updatePetWithForm (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String name , @ javax .annotation .Nullable String status , Handler <AsyncResult <Void >> handler );
119119
120120 default Future <Void > updatePetWithForm (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String name , @ javax .annotation .Nullable String status ){
121121 Promise <Void > promise = Promise .promise ();
122- updatePetWithForm (petId , name , status , promise );
122+ updatePetWithForm (petId , name , status , promise :: handle );
123123 return promise .future ();
124124 }
125125
126126 void updatePetWithForm (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String name , @ javax .annotation .Nullable String status , ApiClient .AuthInfo authInfo , Handler <AsyncResult <Void >> handler );
127127
128128 default Future <Void > updatePetWithForm (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String name , @ javax .annotation .Nullable String status , ApiClient .AuthInfo authInfo ){
129129 Promise <Void > promise = Promise .promise ();
130- updatePetWithForm (petId , name , status , authInfo , promise );
130+ updatePetWithForm (petId , name , status , authInfo , promise :: handle );
131131 return promise .future ();
132132 }
133133
134134 void uploadFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String additionalMetadata , @ javax .annotation .Nullable AsyncFile _file , Handler <AsyncResult <ModelApiResponse >> handler );
135135
136136 default Future <ModelApiResponse > uploadFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String additionalMetadata , @ javax .annotation .Nullable AsyncFile _file ){
137137 Promise <ModelApiResponse > promise = Promise .promise ();
138- uploadFile (petId , additionalMetadata , _file , promise );
138+ uploadFile (petId , additionalMetadata , _file , promise :: handle );
139139 return promise .future ();
140140 }
141141
142142 void uploadFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String additionalMetadata , @ javax .annotation .Nullable AsyncFile _file , ApiClient .AuthInfo authInfo , Handler <AsyncResult <ModelApiResponse >> handler );
143143
144144 default Future <ModelApiResponse > uploadFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nullable String additionalMetadata , @ javax .annotation .Nullable AsyncFile _file , ApiClient .AuthInfo authInfo ){
145145 Promise <ModelApiResponse > promise = Promise .promise ();
146- uploadFile (petId , additionalMetadata , _file , authInfo , promise );
146+ uploadFile (petId , additionalMetadata , _file , authInfo , promise :: handle );
147147 return promise .future ();
148148 }
149149
150150 void uploadFileWithRequiredFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nonnull AsyncFile requiredFile , @ javax .annotation .Nullable String additionalMetadata , Handler <AsyncResult <ModelApiResponse >> handler );
151151
152152 default Future <ModelApiResponse > uploadFileWithRequiredFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nonnull AsyncFile requiredFile , @ javax .annotation .Nullable String additionalMetadata ){
153153 Promise <ModelApiResponse > promise = Promise .promise ();
154- uploadFileWithRequiredFile (petId , requiredFile , additionalMetadata , promise );
154+ uploadFileWithRequiredFile (petId , requiredFile , additionalMetadata , promise :: handle );
155155 return promise .future ();
156156 }
157157
158158 void uploadFileWithRequiredFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nonnull AsyncFile requiredFile , @ javax .annotation .Nullable String additionalMetadata , ApiClient .AuthInfo authInfo , Handler <AsyncResult <ModelApiResponse >> handler );
159159
160160 default Future <ModelApiResponse > uploadFileWithRequiredFile (@ javax .annotation .Nonnull Long petId , @ javax .annotation .Nonnull AsyncFile requiredFile , @ javax .annotation .Nullable String additionalMetadata , ApiClient .AuthInfo authInfo ){
161161 Promise <ModelApiResponse > promise = Promise .promise ();
162- uploadFileWithRequiredFile (petId , requiredFile , additionalMetadata , authInfo , promise );
162+ uploadFileWithRequiredFile (petId , requiredFile , additionalMetadata , authInfo , promise :: handle );
163163 return promise .future ();
164164 }
165165
0 commit comments