Remove redundant suppressions

Change-Id: Iae08b6f284cf7a387922fdec34c8a0aa0da809ef
pull/766/head
Miłosz Moczkowski 1 year ago
parent 2bf3018898
commit 99094199bc

@ -32,7 +32,6 @@ class UserPreferencesSerializer @Inject constructor() : Serializer<UserPreferenc
override suspend fun readFrom(input: InputStream): UserPreferences = override suspend fun readFrom(input: InputStream): UserPreferences =
try { try {
// readFrom is already called on the data store background thread // readFrom is already called on the data store background thread
@Suppress("BlockingMethodInNonBlockingContext")
UserPreferences.parseFrom(input) UserPreferences.parseFrom(input)
} catch (exception: InvalidProtocolBufferException) { } catch (exception: InvalidProtocolBufferException) {
throw CorruptionException("Cannot read proto.", exception) throw CorruptionException("Cannot read proto.", exception)
@ -40,7 +39,6 @@ class UserPreferencesSerializer @Inject constructor() : Serializer<UserPreferenc
override suspend fun writeTo(t: UserPreferences, output: OutputStream) { override suspend fun writeTo(t: UserPreferences, output: OutputStream) {
// writeTo is already called on the data store background thread // writeTo is already called on the data store background thread
@Suppress("BlockingMethodInNonBlockingContext")
t.writeTo(output) t.writeTo(output)
} }
} }

@ -83,7 +83,6 @@ fun SettingsDialog(
) )
} }
@OptIn(ExperimentalComposeUiApi::class)
@Composable @Composable
fun SettingsDialog( fun SettingsDialog(
settingsUiState: SettingsUiState, settingsUiState: SettingsUiState,

@ -32,7 +32,6 @@ import org.jetbrains.uast.UQualifiedReferenceExpression
* A detector that checks for incorrect usages of Compose Material APIs over equivalents in * A detector that checks for incorrect usages of Compose Material APIs over equivalents in
* the Now in Android design system module. * the Now in Android design system module.
*/ */
@Suppress("UnstableApiUsage")
class DesignSystemDetector : Detector(), Detector.UastScanner { class DesignSystemDetector : Detector(), Detector.UastScanner {
override fun getApplicableUastTypes(): List<Class<out UElement>> { override fun getApplicableUastTypes(): List<Class<out UElement>> {

@ -24,7 +24,6 @@ import com.android.tools.lint.detector.api.CURRENT_API
* An issue registry that checks for incorrect usages of Compose Material APIs over equivalents in * An issue registry that checks for incorrect usages of Compose Material APIs over equivalents in
* the Now in Android design system module. * the Now in Android design system module.
*/ */
@Suppress("UnstableApiUsage")
class DesignSystemIssueRegistry : IssueRegistry() { class DesignSystemIssueRegistry : IssueRegistry() {
override val issues = listOf(DesignSystemDetector.ISSUE) override val issues = listOf(DesignSystemDetector.ISSUE)

Loading…
Cancel
Save