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
Eclipse complains with Type mismatch: cannot convert from List<String> to List<E> when using @Size and constant.
Type mismatch: cannot convert from List<String> to List<E>
@Size
@SuperBuilder( toBuilder = true ) public abstract class AAA { }
@Value @SuperBuilder( toBuilder = true ) //<-- here @EqualsAndHashCode( callSuper = true ) public class Internal extends AAA { private static final int DESCRIPTION_SHORT = 100; List<@NotBlank @Size( max = DESCRIPTION_SHORT ) String> exemptions; }
If I replace:
@Size( max = DESCRIPTION_SHORT )
with:
@Size( max = 100 )
no errors are reported.
Version info:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Eclipse complains with
Type mismatch: cannot convert from List<String> to List<E>
when using@Size
and constant.If I replace:
with:
no errors are reported.
Version info:
OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS)
OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: