airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

Upper bound on Typed Controller Generic Types to avoid nullability #1289

Open JasonCromer opened 2 years ago

JasonCromer commented 2 years ago

Typed2EpoxyController<T, U> have no upper bound, so when using Kotlin, these types, while seemingly null-safe, are actually bounded by Any? by default.

We should bound the types to be non-null: Typed2EpoxyController<T : Any, U: Any>

Are there any plans to convert the Epoxy implementation to Kotlin?