- * public Foo(Bar bar, Baz baz) {
- * this.bar = Objects.requireNonNull(bar, "bar must not be null");
- * this.baz = Objects.requireNonNull(baz, "baz must not be null");
- * }
- *
- *
- * @param obj the object reference to check for nullity
- * @param message detail message to be used in the event that a {@code
- * NullPointerException} is thrown
- * @param