From 56b0505955a1fe7a941add6f2c60fc69d00325d9 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 30 Apr 2024 16:08:27 +0200 Subject: [PATCH] change: Remove obsolete @Suppress annotations --- checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt | 1 - .../src/orange/kotlin/app/pachli/core/activity/RingBuffer.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt b/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt index 18823dc51..d365ab7d4 100644 --- a/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt +++ b/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt @@ -5,7 +5,6 @@ import com.android.tools.lint.client.api.Vendor import com.android.tools.lint.detector.api.CURRENT_API import com.android.tools.lint.detector.api.Issue -@Suppress("UnstableApiUsage") class LintRegistry : IssueRegistry() { override val issues: List get() = listOf( diff --git a/core/activity/src/orange/kotlin/app/pachli/core/activity/RingBuffer.kt b/core/activity/src/orange/kotlin/app/pachli/core/activity/RingBuffer.kt index f3c3266de..5f6de7c3c 100644 --- a/core/activity/src/orange/kotlin/app/pachli/core/activity/RingBuffer.kt +++ b/core/activity/src/orange/kotlin/app/pachli/core/activity/RingBuffer.kt @@ -51,7 +51,6 @@ class RingBuffer(private val capacity: Int) : Iterable { } as T /** Buffer as a list. */ - @Suppress("UNCHECKED_CAST") fun toList(): List = iterator().asSequence().toList() override fun iterator(): Iterator = object : Iterator {