From 27eddec464a9ee72583f15cd80d3f24995ea3a4e Mon Sep 17 00:00:00 2001 From: Alexander Buntakov Date: Sat, 12 Nov 2022 18:58:57 +0300 Subject: [PATCH] fix detect errors --- .../provider/hpk/clients/hms_hpk/dto/apns/ApnsHmsOptions.kt | 1 + .../provider/hpk/clients/hms_hpk/dto/web/WebNotification.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/apns/ApnsHmsOptions.kt b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/apns/ApnsHmsOptions.kt index 36dd182..6f5bd23 100644 --- a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/apns/ApnsHmsOptions.kt +++ b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/apns/ApnsHmsOptions.kt @@ -11,6 +11,7 @@ internal data class ApnsHmsOptions private constructor( class Validator { + @Suppress("UNUSED_PARAMETER") fun check(apnsHmsOptions: ApnsHmsOptions) { // no validation } diff --git a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/web/WebNotification.kt b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/web/WebNotification.kt index b9d52a5..5806b21 100644 --- a/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/web/WebNotification.kt +++ b/push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/web/WebNotification.kt @@ -26,6 +26,7 @@ internal data class WebNotification private constructor( class Validator { + @Suppress("UNUSED_PARAMETER") fun check(webNotification: WebNotification) { // no verification required } @@ -70,7 +71,7 @@ internal data class WebNotification private constructor( } fun setLang(lang: String): Builder { - this.lang + this.lang = lang return this }