Closed cdekok closed 3 years ago
Thank you very much for the detailed report. I will come up with a fix.
I will change the method from taking java.util.function.Function<T, ?> pojoSetter
to java.util.function.Consumer<T> pojoSetter
as a first argument - even though it is a breaking change. The method shouldn't be used outside the fromJson
-method so it should be safe to do this. Also, it will work for both cases (fluentSetter true/false).
This will not work anymore on 6.1.0
It will throw errors on the
setOrThrow
As it will return void in the setter.
Not a big deal to change it in my case but maybe remove the option if it's no longer usable. Or add another setOrThrow method.