File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public final class Cake
6161 {
6262 return checkIf(bitesTaken, " bitesTaken" ). isNotNegative().
6363 and(checkIf(piecesLeft, " piecesLeft" ). isGreaterThan(3 )).
64- elseGetMessages ();
64+ elseGetFailures ();
6565 }
6666}
6767```
@@ -162,7 +162,7 @@ See the [API documentation](https://cowwoc.github.io/requirements.java/12.0/) fo
162162
163163## Best practices
164164
165- * Use ` checkIf().elseGetMessages () ` to return failure messages without throwing an exception.
165+ * Use ` checkIf().elseGetFailures () ` to return failure messages without throwing an exception.
166166 This is the fastest validation approach, ideal for web services.
167167* To enhance the clarity of failure messages, you should provide parameter names, even when they are optional.
168168 In other words, favor ` assert that(value, name) ` over ` assert that(value) ` .
You can’t perform that action at this time.
0 commit comments