Skip to content

Commit bdcd41e

Browse files
authored
Merge pull request #766 from android/refactor/remove_redundant_suppresions
Remove redundant suppressions
2 parents 9c77c45 + 83fa8c8 commit bdcd41e

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import androidx.compose.material3.Text
4040
import androidx.compose.runtime.Composable
4141
import androidx.compose.runtime.getValue
4242
import androidx.compose.ui.Alignment
43-
import androidx.compose.ui.ExperimentalComposeUiApi
4443
import androidx.compose.ui.Modifier
4544
import androidx.compose.ui.platform.LocalConfiguration
4645
import androidx.compose.ui.platform.LocalContext
@@ -83,7 +82,6 @@ fun SettingsDialog(
8382
)
8483
}
8584

86-
@OptIn(ExperimentalComposeUiApi::class)
8785
@Composable
8886
fun SettingsDialog(
8987
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)