Skip to content

Converting Java to Kotlin#196

Open
psteiger wants to merge 3 commits intodevfrom
issue-147-2
Open

Converting Java to Kotlin#196
psteiger wants to merge 3 commits intodevfrom
issue-147-2

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.

2 participants