Android Java & Kotlin Interop

0•

Enforces memory safety, nullability annotations, robust asynchronous patterns, and seamless Kotlin interoperability in Android Java codebases.

Designed specifically for Android projects containing Java or mixed Java/Kotlin architectures, this skill provides domain-specific guidelines for writing reliable Java without modern Kotlin features. It enforces strict nullability annotations across language boundaries to avoid dangerous platform types, prevents implicit context and view memory leaks, implements robust executor-based concurrency and Looper management, and outlines a disciplined, regression-proof procedure for migrating Java components to Kotlin.

Características Principales

01Execute safe, behavior-preserving Java-to-Kotlin conversions backed by characterization testing
02Prevent memory leaks from implicit inner classes, static View references, and detached context lifecycles
03Enforce nullability annotations (@Nullable/@NonNull) to eliminate unverified platform types across the Kotlin boundary
04Implement safe asynchronous patterns with shared application executors and explicit Handler loopers
05Preserve Java-facing API shapes with Kotlin interop annotations like @JvmStatic and @JvmOverloads
060 GitHub stars

Casos de Uso

01Maintaining and extending existing Java modules within mixed Java and Kotlin Android codebases
02Diagnosing and resolving Activity and Fragment memory leaks caused by uncancelled tasks and static references
03Incrementally migrating legacy Java classes to Kotlin without altering runtime behavior or breaking API consumers