Android Java & Kotlin Interop
Guides safe Java development and Kotlin interoperability in legacy and mixed Android codebases.
The Android Java skill establishes essential architectural and safety standards for maintaining legacy Java code and managing mixed Java-Kotlin Android applications. It enforces strict nullability annotations across Kotlin boundaries, prevents memory leaks from implicit outer class captures or static contexts, standardizes background concurrency without coroutines, and outlines rigorous protocols for translating Java classes to Kotlin without regressions.
主要功能
010 GitHub stars
02Enforces strict @Nullable and @NonNull boundaries for seamless Kotlin interoperability
03Ensures backward-compatible Kotlin-to-Java interop using @JvmStatic and @JvmOverloads
04Prevents Activity and View memory leaks in anonymous classes and async callbacks
05Prescribes step-by-step, behavior-preserving workflows for Java to Kotlin migrations
06Standardizes thread management with shared application Executors instead of AsyncTask
使用场景
01Maintaining and extending legacy Java modules within mixed Android codebases
02Refactoring and migrating existing Android Java classes to idiomatic Kotlin safely
03Debugging memory leaks, background task crashes, and null pointer exceptions across language seams