Skip to content

Commit f394d03

Browse files
Merge pull request #16489 from nextcloud/jtr/chore-fix-LocalConnection-lint
chore(core): suppress unchecked cast warning in LocalConnection
2 parents dabb846 + 9f0f4f8 commit f394d03

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/main/java/com/nextcloud/client/core/LocalConnection.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ abstract class LocalConnection<S : Service>(protected val context: Context) : Se
7878
if (binder !is LocalBinder<*>) {
7979
throw IllegalStateException("Binder is not extending ${LocalBinder::class.java.name}")
8080
}
81+
@Suppress("UNCHECKED_CAST") // Safe: type S guaranteed by service binding contract
8182
serviceBinder = binder as LocalBinder<S>
8283
onBound(binder)
8384
}

0 commit comments

Comments
 (0)