@@ -88,17 +88,17 @@ public ResponseEntity<Void> addPetWithHttpInfo(Pet body) throws RestClientExcept
88
88
final MultiValueMap <String , String > cookieParams = new LinkedMultiValueMap <String , String >();
89
89
final MultiValueMap formParams = new LinkedMultiValueMap ();
90
90
91
- final String [] accepts = { };
92
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
91
+ final String [] localVarAccepts = { };
92
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
93
93
final String [] contentTypes = {
94
94
"application/json" , "application/xml"
95
- };
95
+ };
96
96
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
97
97
98
98
String [] authNames = new String [] { "petstore_auth" };
99
99
100
100
ParameterizedTypeReference <Void > returnType = new ParameterizedTypeReference <Void >() {};
101
- return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
101
+ return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
102
102
}
103
103
/**
104
104
* Deletes a pet
@@ -144,15 +144,15 @@ public ResponseEntity<Void> deletePetWithHttpInfo(Long petId, String apiKey) thr
144
144
if (apiKey != null )
145
145
headerParams .add ("api_key" , apiClient .parameterToString (apiKey ));
146
146
147
- final String [] accepts = { };
148
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
149
- final String [] contentTypes = { };
147
+ final String [] localVarAccepts = { };
148
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
149
+ final String [] contentTypes = { };
150
150
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
151
151
152
152
String [] authNames = new String [] { "petstore_auth" };
153
153
154
154
ParameterizedTypeReference <Void > returnType = new ParameterizedTypeReference <Void >() {};
155
- return apiClient .invokeAPI (path , HttpMethod .DELETE , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
155
+ return apiClient .invokeAPI (path , HttpMethod .DELETE , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
156
156
}
157
157
/**
158
158
* Finds Pets by status
@@ -193,17 +193,17 @@ public ResponseEntity<List<Pet>> findPetsByStatusWithHttpInfo(List<String> statu
193
193
194
194
queryParams .putAll (apiClient .parameterToMultiValueMap (ApiClient .CollectionFormat .valueOf ("csv" .toUpperCase (Locale .ROOT )), "status" , status ));
195
195
196
- final String [] accepts = {
196
+ final String [] localVarAccepts = {
197
197
"application/xml" , "application/json"
198
- };
199
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
200
- final String [] contentTypes = { };
198
+ };
199
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
200
+ final String [] contentTypes = { };
201
201
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
202
202
203
203
String [] authNames = new String [] { "petstore_auth" };
204
204
205
205
ParameterizedTypeReference <List <Pet >> returnType = new ParameterizedTypeReference <List <Pet >>() {};
206
- return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
206
+ return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
207
207
}
208
208
/**
209
209
* Finds Pets by tags
@@ -246,17 +246,17 @@ public ResponseEntity<Set<Pet>> findPetsByTagsWithHttpInfo(Set<String> tags) thr
246
246
247
247
queryParams .putAll (apiClient .parameterToMultiValueMap (ApiClient .CollectionFormat .valueOf ("csv" .toUpperCase (Locale .ROOT )), "tags" , tags ));
248
248
249
- final String [] accepts = {
249
+ final String [] localVarAccepts = {
250
250
"application/xml" , "application/json"
251
- };
252
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
253
- final String [] contentTypes = { };
251
+ };
252
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
253
+ final String [] contentTypes = { };
254
254
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
255
255
256
256
String [] authNames = new String [] { "petstore_auth" };
257
257
258
258
ParameterizedTypeReference <Set <Pet >> returnType = new ParameterizedTypeReference <Set <Pet >>() {};
259
- return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
259
+ return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
260
260
}
261
261
/**
262
262
* Find pet by ID
@@ -300,17 +300,17 @@ public ResponseEntity<Pet> getPetByIdWithHttpInfo(Long petId) throws RestClientE
300
300
final MultiValueMap <String , String > cookieParams = new LinkedMultiValueMap <String , String >();
301
301
final MultiValueMap formParams = new LinkedMultiValueMap ();
302
302
303
- final String [] accepts = {
303
+ final String [] localVarAccepts = {
304
304
"application/xml" , "application/json"
305
- };
306
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
307
- final String [] contentTypes = { };
305
+ };
306
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
307
+ final String [] contentTypes = { };
308
308
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
309
309
310
310
String [] authNames = new String [] { "api_key" };
311
311
312
312
ParameterizedTypeReference <Pet > returnType = new ParameterizedTypeReference <Pet >() {};
313
- return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
313
+ return apiClient .invokeAPI (path , HttpMethod .GET , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
314
314
}
315
315
/**
316
316
* Update an existing pet
@@ -352,17 +352,17 @@ public ResponseEntity<Void> updatePetWithHttpInfo(Pet body) throws RestClientExc
352
352
final MultiValueMap <String , String > cookieParams = new LinkedMultiValueMap <String , String >();
353
353
final MultiValueMap formParams = new LinkedMultiValueMap ();
354
354
355
- final String [] accepts = { };
356
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
355
+ final String [] localVarAccepts = { };
356
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
357
357
final String [] contentTypes = {
358
358
"application/json" , "application/xml"
359
- };
359
+ };
360
360
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
361
361
362
362
String [] authNames = new String [] { "petstore_auth" };
363
363
364
364
ParameterizedTypeReference <Void > returnType = new ParameterizedTypeReference <Void >() {};
365
- return apiClient .invokeAPI (path , HttpMethod .PUT , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
365
+ return apiClient .invokeAPI (path , HttpMethod .PUT , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
366
366
}
367
367
/**
368
368
* Updates a pet in the store with form data
@@ -410,17 +410,17 @@ public ResponseEntity<Void> updatePetWithFormWithHttpInfo(Long petId, String nam
410
410
if (status != null )
411
411
formParams .add ("status" , status );
412
412
413
- final String [] accepts = { };
414
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
413
+ final String [] localVarAccepts = { };
414
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
415
415
final String [] contentTypes = {
416
416
"application/x-www-form-urlencoded"
417
- };
417
+ };
418
418
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
419
419
420
420
String [] authNames = new String [] { "petstore_auth" };
421
421
422
422
ParameterizedTypeReference <Void > returnType = new ParameterizedTypeReference <Void >() {};
423
- return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
423
+ return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
424
424
}
425
425
/**
426
426
* uploads an image
@@ -469,19 +469,19 @@ public ResponseEntity<ModelApiResponse> uploadFileWithHttpInfo(Long petId, Strin
469
469
if (file != null )
470
470
formParams .add ("file" , new FileSystemResource (file ));
471
471
472
- final String [] accepts = {
472
+ final String [] localVarAccepts = {
473
473
"application/json"
474
- };
475
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
474
+ };
475
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
476
476
final String [] contentTypes = {
477
477
"multipart/form-data"
478
- };
478
+ };
479
479
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
480
480
481
481
String [] authNames = new String [] { "petstore_auth" };
482
482
483
483
ParameterizedTypeReference <ModelApiResponse > returnType = new ParameterizedTypeReference <ModelApiResponse >() {};
484
- return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
484
+ return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
485
485
}
486
486
/**
487
487
* uploads an image (required)
@@ -535,18 +535,18 @@ public ResponseEntity<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(L
535
535
if (requiredFile != null )
536
536
formParams .add ("requiredFile" , new FileSystemResource (requiredFile ));
537
537
538
- final String [] accepts = {
538
+ final String [] localVarAccepts = {
539
539
"application/json"
540
- };
541
- final List <MediaType > accept = apiClient .selectHeaderAccept (accepts );
540
+ };
541
+ final List <MediaType > localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
542
542
final String [] contentTypes = {
543
543
"multipart/form-data"
544
- };
544
+ };
545
545
final MediaType contentType = apiClient .selectHeaderContentType (contentTypes );
546
546
547
547
String [] authNames = new String [] { "petstore_auth" };
548
548
549
549
ParameterizedTypeReference <ModelApiResponse > returnType = new ParameterizedTypeReference <ModelApiResponse >() {};
550
- return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , accept , contentType , authNames , returnType );
550
+ return apiClient .invokeAPI (path , HttpMethod .POST , queryParams , postBody , headerParams , cookieParams , formParams , localVarAccept , contentType , authNames , returnType );
551
551
}
552
552
}
0 commit comments