We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining an object like this:
MyObject: fields: myfield: optional<any>
Results in the following Java code:
@Generated("com.palantir.conjure.java.types.BeanBuilderGenerator") @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { ... @JsonSetter("detail") public Builder detail(Optional<?> detail) { this.detail = (Optional<Object>) Preconditions.checkNotNull(detail, "detail cannot be null"); return this; } public Builder detail(Object detail) { this.detail = Optional.of(Preconditions.checkNotNull(detail, "detail cannot be null")); return this; } }
Where Optional<?> is cast into an Optional<Object>.
Optional<?>
Optional<Object>
public static final class Builder { ... @JsonSetter("detail") public Builder detail(Optional<Object> detail) { this.detail = Preconditions.checkNotNull(detail, "detail cannot be null"); return this; } ... }
The text was updated successfully, but these errors were encountered:
Possibly relevant PR: #9
Sorry, something went wrong.
No branches or pull requests
What happened?
Defining an object like this:
Results in the following Java code:
Where
Optional<?>
is cast into anOptional<Object>
.What did you want to happen?
The text was updated successfully, but these errors were encountered: