Skip to content
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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Converting Java to Kotlin #196

wants to merge 3 commits into from

Conversation

psteiger
Copy link

No description provided.

configureMainInjectorBuilder()
configureSessionInjectorBuilder()
configureSessionListInjectorBuilder()
configureMeetingInjectorBuilder()
Copy link
Contributor

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) {
Copy link
Contributor

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()
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants