From 08c6e93d9f0733cc80bf0167c66e139b7cbd49c4 Mon Sep 17 00:00:00 2001 From: Go Shibata Date: Thu, 1 Oct 2020 18:07:17 +0900 Subject: [PATCH] =?UTF-8?q?import=20Throws=20=E3=81=84=E3=82=89=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=89=E3=81=97=E3=81=84=E3=81=AE=E3=81=A7=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../openapigenerationtestapi/infrastructure/ResponseExt.kt | 1 - template/libraries/jvm-retrofit2/auth/HttpBearerAuth.kt.mustache | 1 - .../jvm-retrofit2/infrastructure/ResponseExt.kt.mustache | 1 - 3 files changed, 3 deletions(-) diff --git a/api/src/main/java/com/example/openapigenerationtestapi/infrastructure/ResponseExt.kt b/api/src/main/java/com/example/openapigenerationtestapi/infrastructure/ResponseExt.kt index 8b02210..aaf797c 100644 --- a/api/src/main/java/com/example/openapigenerationtestapi/infrastructure/ResponseExt.kt +++ b/api/src/main/java/com/example/openapigenerationtestapi/infrastructure/ResponseExt.kt @@ -3,7 +3,6 @@ package com.example.openapigenerationtestapi.infrastructure import com.squareup.moshi.JsonDataException import com.squareup.moshi.Moshi import retrofit2.Response -import kotlin.jvm.Throws @Throws(JsonDataException::class) inline fun Response<*>.getErrorResponse(serializerBuilder: Moshi.Builder = Serializer.moshiBuilder): T? { diff --git a/template/libraries/jvm-retrofit2/auth/HttpBearerAuth.kt.mustache b/template/libraries/jvm-retrofit2/auth/HttpBearerAuth.kt.mustache index 1f19074..3238448 100644 --- a/template/libraries/jvm-retrofit2/auth/HttpBearerAuth.kt.mustache +++ b/template/libraries/jvm-retrofit2/auth/HttpBearerAuth.kt.mustache @@ -5,7 +5,6 @@ import java.io.IOException import okhttp3.Interceptor import okhttp3.Interceptor.Chain import okhttp3.Response -import kotlin.jvm.Throws class HttpBearerAuth( private var schema: String = "", diff --git a/template/libraries/jvm-retrofit2/infrastructure/ResponseExt.kt.mustache b/template/libraries/jvm-retrofit2/infrastructure/ResponseExt.kt.mustache index 62e57de..bacdc39 100644 --- a/template/libraries/jvm-retrofit2/infrastructure/ResponseExt.kt.mustache +++ b/template/libraries/jvm-retrofit2/infrastructure/ResponseExt.kt.mustache @@ -9,7 +9,6 @@ import com.google.gson.GsonBuilder import com.google.gson.JsonParseException {{/gson}} import retrofit2.Response -import kotlin.jvm.Throws {{#moshi}} @Throws(JsonDataException::class)