Skip to content

Commit

Permalink
Manually merge #629 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 15, 2023
1 parent 15a20db commit fd10302
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/kotlin/tools/jackson/module/kotlin/ValueCreator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ internal sealed class ValueCreator<T> {
/**
* ValueParameters of the KFunction to be called.
*/
val valueParameters: List<KParameter> by lazy { callable.valueParameters }
// If this result is cached, it will coexist with the SoftReference managed value in kotlin-reflect,
// and there is a risk of doubling the memory consumption, so it should not be cached.
// @see #584
val valueParameters: List<KParameter> get() = callable.valueParameters

/**
/**
* Checking process to see if access from context is possible.
* @throws IllegalAccessException
*/
Expand Down

0 comments on commit fd10302

Please sign in to comment.