Skip to content

Instantly share code, notes, and snippets.

@Zhuinden
Created October 14, 2017 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zhuinden/64a3ff58ae1c06c16ae0ad3605b2a44a to your computer and use it in GitHub Desktop.
Save Zhuinden/64a3ff58ae1c06c16ae0ad3605b2a44a to your computer and use it in GitHub Desktop.
Auto-generated Kotlin @Inject constructor vs style proposition
@Singleton
class EventDao @Inject
constructor(databaseManager: DatabaseManager, table: EventTable, private val sportDao: SportDao, private val locationDao: LocationDao) : BaseDao<Event>(databaseManager, table) {
@Singleton class EventDao
@Inject constructor(
databaseManager: DatabaseManager,
table: EventTable,
private val sportDao: SportDao,
private val locationDao: LocationDao
) : BaseDao<Event>(databaseManager, table) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment