Skip to content

Commit

Permalink
Add SpreadWrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Jan 10, 2021
1 parent afbafe3 commit ace1ae8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.fasterxml.jackson.module.kotlin;

import kotlin.reflect.KFunction;

class SpreadWrapper {
// Wrapper to avoid costly calls using spread operator.
static <T> T call(KFunction<T> function, Object[] args) {
return function.call(args);
}
}

0 comments on commit ace1ae8

Please sign in to comment.