Previously, if the input was undefined for a vararg argument, it was treated as if null had been entered.
This is the same behavior as with databind.
On the other hand, in Kotlin, the vararg argument is always non-null, which causes an error.
Therefore, vararg arguments are now treated as if they were arguments with an empty array as the default value.
This allows deserialization even if the input to the vararg argument is undefined.
In addition, vararg arguments are now basically treated as non-required.
Previously, if the input was
undefined
for avararg
argument, it was treated as ifnull
had been entered. This is the same behavior as withdatabind
. On the other hand, inKotlin
, thevararg
argument is alwaysnon-null
, which causes an error.Therefore,
vararg
arguments are now treated as if they were arguments with an empty array as the default value. This allows deserialization even if the input to thevararg
argument isundefined
. In addition,vararg
arguments are now basically treated asnon-required
.from: https://github.com/ProjectMapK/jackson-module-kogera/pull/197