When using @PositiveOrZero on a List<String> I expect a diagnostic message.
When you spell it @PostiveOrZero it does not compile but the diagnostic and quick fix are generated.
Specification:
@PositiveOrZero annotation can only be used on BigDecimal, BigInteger, byte, short, int, long, float, double (and their respective wrappers) type fields or methods.
[x] Must also enable the unit test in BeanValidationTest.java line 157
Description:
When using
@PositiveOrZero
on aList<String>
I expect a diagnostic message.When you spell it
@PostiveOrZero
it does not compile but the diagnostic and quick fix are generated.Specification:
@PositiveOrZero
annotation can only be used on BigDecimal, BigInteger, byte, short, int, long, float, double (and their respective wrappers) type fields or methods.