We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7493f7d + edef208 commit 140ad5aCopy full SHA for 140ad5a
src/main/kotlin/com/fasterxml/jackson/module/kotlin/ValueCreator.kt
@@ -24,7 +24,10 @@ internal sealed class ValueCreator<T> {
24
/**
25
* ValueParameters of the KFunction to be called.
26
*/
27
- val valueParameters: List<KParameter> by lazy { callable.valueParameters }
+ // If this result is cached, it will coexist with the SoftReference managed value in kotlin-reflect,
28
+ // and there is a risk of doubling the memory consumption, so it should not be cached.
29
+ // @see #584
30
+ val valueParameters: List<KParameter> get() = callable.valueParameters
31
32
33
* Checking process to see if access from context is possible.
0 commit comments