Commit c7832b7
authored
Change andThen() to continue false when first validator is false (#275)
This is fixing a semantic bug (that has no impact because the validation chain stops anyway) to return false indicating that the validation shouldn't continue.
It has no impact because currently the generated code uses a single chain and that DOES actually stop processing (but then just returns the wrong value).
Tidy this up so that a followup refactor turning this into a lambda is then no behaviour change.1 parent a414eed commit c7832b7
File tree
2 files changed
+13
-1
lines changed- validator/src
- main/java/io/avaje/validation/adapter
- test/java/io/avaje/validation/core/adapters
2 files changed
+13
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
| |||
0 commit comments