You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly thank you for your library and thank you for fixing issue 12.
Given I have a class
public class MyClass { @EachNotNull private Set<String> myCollection; }
When I use @EachNotNull and the first entry of the collection is a null value, then the field error correctly indicates that it's the first item that has an error: myCollection[0]
When I use @EachNotEmpty then the field reported as having the error is the collection field and not the entry: myCollection
For a collection with only one element it's trivial, but when you have multiple entries it's nice to be able to report which element had the problem.
The text was updated successfully, but these errors were encountered:
Firstly thank you for your library and thank you for fixing issue 12.
Given I have a class
public class MyClass { @EachNotNull private Set<String> myCollection; }
When I use
@EachNotNull
and the first entry of the collection is a null value, then the field error correctly indicates that it's the first item that has an error:myCollection[0]
When I use
@EachNotEmpty
then the field reported as having the error is the collection field and not the entry:myCollection
For a collection with only one element it's trivial, but when you have multiple entries it's nice to be able to report which element had the problem.
The text was updated successfully, but these errors were encountered: