forked from loafle/openapi-generator-original
[kotlin][client] fix warning (#18560)
* [kotlin] Target correct library in jvm-spring-webclient sample * [kotlin] Fixed warning in jvm-spring-restclient
This commit is contained in:
@@ -77,7 +77,7 @@ class PetApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun deletePet(petId: kotlin.Long, apiKey: kotlin.String? = null): Unit {
|
||||
val result = deletePetWithHttpInfo(petId = petId, apiKey = apiKey)
|
||||
deletePetWithHttpInfo(petId = petId, apiKey = apiKey)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -273,7 +273,7 @@ class PetApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String? = null, status: kotlin.String? = null): Unit {
|
||||
val result = updatePetWithFormWithHttpInfo(petId = petId, name = name, status = status)
|
||||
updatePetWithFormWithHttpInfo(petId = petId, name = name, status = status)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
|
||||
@@ -39,7 +39,7 @@ class StoreApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun deleteOrder(orderId: kotlin.String): Unit {
|
||||
val result = deleteOrderWithHttpInfo(orderId = orderId)
|
||||
deleteOrderWithHttpInfo(orderId = orderId)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
|
||||
@@ -39,7 +39,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun createUser(user: User): Unit {
|
||||
val result = createUserWithHttpInfo(user = user)
|
||||
createUserWithHttpInfo(user = user)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -73,7 +73,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun createUsersWithArrayInput(user: kotlin.collections.List<User>): Unit {
|
||||
val result = createUsersWithArrayInputWithHttpInfo(user = user)
|
||||
createUsersWithArrayInputWithHttpInfo(user = user)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -107,7 +107,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun createUsersWithListInput(user: kotlin.collections.List<User>): Unit {
|
||||
val result = createUsersWithListInputWithHttpInfo(user = user)
|
||||
createUsersWithListInputWithHttpInfo(user = user)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -141,7 +141,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun deleteUser(username: kotlin.String): Unit {
|
||||
val result = deleteUserWithHttpInfo(username = username)
|
||||
deleteUserWithHttpInfo(username = username)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -250,7 +250,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun logoutUser(): Unit {
|
||||
val result = logoutUserWithHttpInfo()
|
||||
logoutUserWithHttpInfo()
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
@@ -283,7 +283,7 @@ class UserApi(client: RestClient) : ApiClient(client) {
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
fun updateUser(username: kotlin.String, user: User): Unit {
|
||||
val result = updateUserWithHttpInfo(username = username, user = user)
|
||||
updateUserWithHttpInfo(username = username, user = user)
|
||||
}
|
||||
|
||||
@Throws(RestClientResponseException::class)
|
||||
|
||||
Reference in New Issue
Block a user