Skip to content

Commit fd10302

Browse files
committed
Manually merge #629 to master
1 parent 15a20db commit fd10302

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/kotlin/tools/jackson/module/kotlin/ValueCreator.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ internal sealed class ValueCreator<T> {
2424
/**
2525
* ValueParameters of the KFunction to be called.
2626
*/
27-
val valueParameters: List<KParameter> by lazy { callable.valueParameters }
27+
// 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
2831

29-
/**
32+
/**
3033
* Checking process to see if access from context is possible.
3134
* @throws IllegalAccessException
3235
*/

0 commit comments

Comments
 (0)