-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting Java to Kotlin #196
base: dev
Are you sure you want to change the base?
Conversation
configureMainInjectorBuilder() | ||
configureSessionInjectorBuilder() | ||
configureSessionListInjectorBuilder() | ||
configureMeetingInjectorBuilder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think better to use Lazy initialization in each build? each build is just instanced in the first use instead of loading all.
e.g:
protected var mLoginComponentBuilder: DaggerLoginComponent.Builder by lazy {
DaggerLoginComponent.builder()
}
local = false | ||
} | ||
|
||
fun setLocal(local: Boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use a Kotlin setter instead of creating a new setLocal()
|
||
@Throws(IOException::class) | ||
override fun intercept(chain: Interceptor.Chain): Response { | ||
val request = chain.request() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Use this directly instead of creating a variable to receive the value
private var local: Boolean = false | ||
|
||
init { | ||
local = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary? it is being attributed in the variable declaration.
No description provided.