Skip to content

io.jooby.Value to method should be marked as nullable #2300

@agentgt

Description

@agentgt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions