https://kotlinlang.org logo
#dagger
Title
# dagger
a

Ahmed Ibrahim

03/15/2020, 7:42 PM
Has anyone figured out a solution for the
@JvmSuppressWildCard
problem when injecting generic classes through Dagger? It is becoming too ugly for me 😞
Copy code
internal class SalesSectionReader @Inject constructor(
    private val sectionsLocalDataSource: SectionsDataSource,
    private val saleEntityToSaleSectionSaleMapper: Mapper<@JvmSuppressWildcards SaleEntity, @JvmSuppressWildcards SaleSection.Sale>,
    private val blogEntityToBlogSectionMapper: Mapper<@JvmSuppressWildcards BlogEntity, @JvmSuppressWildcards SaleSection.Blog>,
    private val tagEntityToSaleSectionTagMapper: Mapper<@JvmSuppressWildcards TagEntity, @JvmSuppressWildcards SaleSection.Tag>
) : StoreListReader<AllSectionsKey, SaleSection>
j

Javier

03/15/2020, 10:27 PM
Dagger team is working on it
a

Ahmed Ibrahim

03/15/2020, 11:22 PM
That's good to hear! thanks for the update
6 Views