in io.jooby.Value
We have
@Nonnull <T> T to(@Nonnull Class<T> type);
It should be
@Nullable <T> T to(@Nonnull Class<T> type);
This is because in Context we have:
@Nullable <T> T convert(@Nonnull ValueNode value, @Nonnull Class<T> type);
I'm surprised the null checking didn't pick this up or maybe it isn't turned on for this project.
in
io.jooby.ValueWe have
It should be
This is because in
Contextwe have:I'm surprised the null checking didn't pick this up or maybe it isn't turned on for this project.