-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding NotNull annotation for required fields (#810)
* NotNull annotation added for required field (even when the field has no other constraint). * Update BeanValidationTest.java getFields method returns only `public` fields and the generated class consists only of private ones. It makes ValidatedObject.class.getFields() always returning an empty array. Following assertion has no chance to fail assertThat(Arrays.stream(UnvalidatedObject.class.getFields()) .noneMatch(f -> f.isAnnotationPresent(NotNull.class))).isTrue();
- Loading branch information
1 parent
246fa51
commit 9521d8d
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters