I would add to Validate with different names, or adopt an entirely new
approach to constructing exceptions, like that demonstrated in [1].
Matt
[1]
https://github.com/apache/bval/blob/bv2/bval-jsr/src/main/java/org/apache/bval/util/Exceptions.java
On Sun, Oct 7, 2018, 11:13 AM Gary Gregory
Hi All:
Similar to Objects.requireNonNull() but for IAEs:
/**
* Factory methods for {@link IllegalArgumentException}.
*/
class IllegalArgumentExceptions {
private static T requireNonNull(T obj, String message, Object...
args) {
if (obj == null) {
throw new