1
1
package com.fasterxml.jackson.module.kotlin
2
2
3
3
import java.util.BitSet
4
- import kotlin.math.pow
5
4
6
5
/* *
7
6
* @see KotlinModule.Builder
@@ -45,9 +44,9 @@ enum class KotlinFeature(private val enabledByDefault: Boolean) {
45
44
StrictNullChecks (enabledByDefault = false ),
46
45
47
46
/* *
48
- * By enabling this feature, the property name on Kotlin will be used as the getter name.
47
+ * By enabling this feature, the property name on Kotlin is used as the implicit name for the getter .
49
48
*
50
- * By default, the name based on the getter name on the JVM is used as the accessor name .
49
+ * By default, the getter name is used during serialization .
51
50
* This name may be different from the parameter/field name, in which case serialization results
52
51
* may be incorrect or annotations may malfunction.
53
52
* See [jackson-module-kotlin#630] for details.
@@ -57,8 +56,9 @@ enum class KotlinFeature(private val enabledByDefault: Boolean) {
57
56
* On the other hand, enabling this option increases the amount of reflection processing,
58
57
* which may result in performance degradation for both serialization and deserialization.
59
58
* In addition, the adjustment of behavior using get:JvmName is disabled.
59
+ * Note also that this feature does not apply to setters.
60
60
*/
61
- UseKotlinPropertyNameForGetter (enabledByDefault = false );
61
+ KotlinPropertyNameAsImplicitName (enabledByDefault = false );
62
62
63
63
internal val bitSet: BitSet = (1 shl ordinal).toBitSet()
64
64
0 commit comments