Skip to content

Commit 9909419

Browse files
committed
Remove redundant suppressions
Change-Id: Iae08b6f284cf7a387922fdec34c8a0aa0da809ef
1 parent 2bf3018 commit 9909419

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

core/datastore/src/main/java/com/google/samples/apps/nowinandroid/core/datastore/UserPreferencesSerializer.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ class UserPreferencesSerializer @Inject constructor() : Serializer<UserPreferenc
3232
override suspend fun readFrom(input: InputStream): UserPreferences =
3333
try {
3434
// readFrom is already called on the data store background thread
35-
@Suppress("BlockingMethodInNonBlockingContext")
3635
UserPreferences.parseFrom(input)
3736
} catch (exception: InvalidProtocolBufferException) {
3837
throw CorruptionException("Cannot read proto.", exception)
3938
}
4039

4140
override suspend fun writeTo(t: UserPreferences, output: OutputStream) {
4241
// writeTo is already called on the data store background thread
43-
@Suppress("BlockingMethodInNonBlockingContext")
4442
t.writeTo(output)
4543
}
4644
}

feature/settings/src/main/java/com/google/samples/apps/nowinandroid/feature/settings/SettingsDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ fun SettingsDialog(
8383
)
8484
}
8585

86-
@OptIn(ExperimentalComposeUiApi::class)
8786
@Composable
8887
fun SettingsDialog(
8988
settingsUiState: SettingsUiState,

lint/src/main/java/com/google/samples/apps/nowinandroid/lint/designsystem/DesignSystemDetector.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import org.jetbrains.uast.UQualifiedReferenceExpression
3232
* A detector that checks for incorrect usages of Compose Material APIs over equivalents in
3333
* the Now in Android design system module.
3434
*/
35-
@Suppress("UnstableApiUsage")
3635
class DesignSystemDetector : Detector(), Detector.UastScanner {
3736

3837
override fun getApplicableUastTypes(): List<Class<out UElement>> {

lint/src/main/java/com/google/samples/apps/nowinandroid/lint/designsystem/DesignSystemIssueRegistry.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import com.android.tools.lint.detector.api.CURRENT_API
2424
* An issue registry that checks for incorrect usages of Compose Material APIs over equivalents in
2525
* the Now in Android design system module.
2626
*/
27-
@Suppress("UnstableApiUsage")
2827
class DesignSystemIssueRegistry : IssueRegistry() {
2928
override val issues = listOf(DesignSystemDetector.ISSUE)
3029

0 commit comments

Comments
 (0)