Skip to content

Commit d23481c

Browse files
committed
Add SpreadWrapper.
1 parent ac7eba8 commit d23481c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.fasterxml.jackson.module.kotlin;
2+
3+
import kotlin.reflect.KFunction;
4+
5+
class SpreadWrapper {
6+
// Wrapper to avoid costly calls using spread operator.
7+
static <T> T call(KFunction<T> function, Object[] args) {
8+
return function.call(args);
9+
}
10+
}

0 commit comments

Comments
 (0)