-
Notifications
You must be signed in to change notification settings - Fork 175
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
[2.13 RC1] Deprecation fixes for KotlinModule and docs for KotlinFeature #477
Conversation
Btw, did you want to fully publish this
|
Superb additions! |
I don't think there is reason for I'll wait a bit for response from @efenderbosch then merge; can always privatize it later. |
It could be private if we construct the default bitset in enum class KotlinFeature(private val enabledByDefault: Boolean) {
// snip
companion object {
internal val defaults = 0.toBitSet().apply {
values().filter { it.enabledByDefault }.forEach { or(it.bitSet) }
}
}
} and use it in class Builder {
var reflectionCacheSize: Int = 512
private set
private val bitSet: BitSet = KotlinFeature.defaults
// snip
} But then |
CLA received & Filed successfully. |
@efenderbosch indeed I like your proposal of #477 (comment) you just need one tiny bit of adjustment to make it the way you want: |
Suggested by efenderbosch@github & TWiStErRob@github #477 (comment)
@efenderbosch @TWiStErRob Great ideas, incorporated in 0793bbb |
@dinomite looks like tests were reliant on that. |
Note: this is not broken functionality, but highly improves DX of this deprecation. JetBrains: Develop with pleasure!™, right?
Original code: using all the deprecated methods
Using the IDE's deprecation quickfix.
Actual: errors, missing imports, values lost during deprecation replacement
Expected (after this PR is merged): migrate to equivalent compiling code as much as possible