Skip to content

Commit 89a3079

Browse files
pyricauclaude
andcommitted
Remove trailing inline comments from @Suppress annotations
Move the explanation to the preceding comment line instead of appending it to the annotation itself, per project style conventions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cd658fe commit 89a3079

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/LeakDirectoryProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal class LeakDirectoryProvider constructor(
8181

8282
@TargetApi(M) fun hasStoragePermission(): Boolean {
8383
// Defensive check: @TargetApi doesn't prevent this method from being called on older APIs
84-
@Suppress("ObsoleteSdkInt") // Intentional safety check despite @TargetApi annotation
84+
@Suppress("ObsoleteSdkInt")
8585
if (SDK_INT < M) {
8686
return true
8787
}

leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/RequestPermissionActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ internal class RequestPermissionActivity : Activity() {
8585
fun createPendingIntent(context: Context, permission: String): PendingIntent {
8686
val intent = createIntent(context, permission)
8787
// Defensive check: @TargetApi on class doesn't prevent this method from being called on older APIs
88-
@Suppress("ObsoleteSdkInt") // Intentional safety check despite @TargetApi annotation
88+
@Suppress("ObsoleteSdkInt")
8989
val flags = if (Build.VERSION.SDK_INT >= 23) {
9090
FLAG_UPDATE_CURRENT or FLAG_IMMUTABLE
9191
} else {

0 commit comments

Comments
 (0)