Hi, i have an Encoding class with a method like this.
@Encoding.Naming("with*OrNull")
@Encoding.Copy
public Possible<Optional<T>> withOrNull(@Nullable T value) {
return discord4j.discordjson.possible.Possible.of(Optional.ofNullable(value)); //Posible its like an Optional for internal
}
the issue is every class generated with that not include the Nullable from JSpecify
public Builder optionalOrNull(String value) { // not annotation here
this.optional_possible = Possible.of(Optional.ofNullable(value));
return this;
}
this cause a few warnings in IDE or mess with kotlin nullability checkers for the use of @NullMarked
Hi, i have an Encoding class with a method like this.
the issue is every class generated with that not include the Nullable from JSpecify
this cause a few warnings in IDE or mess with kotlin nullability checkers for the use of
@NullMarked