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

Update Kotlin to 2.1.0 #4284

Merged
merged 7 commits into from
Dec 11, 2024
Merged

Update Kotlin to 2.1.0 #4284

merged 7 commits into from
Dec 11, 2024

Conversation

qwwdfsad
Copy link
Collaborator

No description provided.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@@ -153,6 +153,7 @@ public suspend fun <T> withContext(
// FAST PATH #1 -- new context is the same as the old one
if (newContext === oldContext) {
val coroutine = ScopeCoroutine(newContext, uCont)
@Suppress("LEAKED_IN_PLACE_LAMBDA") // Contract is preserved, invoked immediately or throws
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one (an one on the contract definition) is annoying, I'll report it to the team

return@sc coroutine.startUndispatchedOrReturn(coroutine, block)
}
}
// SLOW PATH -- use new dispatcher
val coroutine = DispatchedCoroutine(newContext, uCont)
// Contract is preserved, invoked immediately or throws
@Suppress("LEAKED_IN_PLACE_LAMBDA")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer that the comment is to the right of Suppress: typically, the comment above a line with a suppression refers to the line itself.

kotlin_version=2.0.0
kotlin_language_version=2.0
kotlin_version=2.1.0
kotlin_language_version=2.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this line do anything useful today other than accidentally disabling the "warnings are errors" flag?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR release team uses it, but not sure. Will figure out separately

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release team may override this property, this I get, but do we need to keep it in gradle.properties?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least for the sake of having "release team" branch and mainline having the same configuration and catching the same warnings/errors.

@qwwdfsad qwwdfsad merged commit 2cafea4 into develop Dec 11, 2024
1 check passed
@qwwdfsad qwwdfsad deleted the update-kotlin branch December 11, 2024 13:21
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