Sudhir Singh Khanger
07/19/2018, 3:12 AMIf the constructor has annotations or visibility modifiers, the constructor keyword is requiredI don't see it being followed in the Google sample.
@Singleton
open class AppExecutors(
private val diskIO: Executor,
private val networkIO: Executor,
private val mainThread: Executor
) {
What is going on here?
https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/AppExecutors.kt#L35
https://kotlinlang.org/docs/reference/classes.htmlbruno.aybar
07/19/2018, 3:21 AMprivate constructor
.bruno.aybar
07/19/2018, 3:22 AM@JvmOverloads
annotation, you would have to add the constructor keyword tooSudhir Singh Khanger
07/19/2018, 3:25 AM