Ensures that reference is non-null, throwing a VerifyException with a default message otherwise. @return reference, guaranteed to be non-null, for convenience @throws VerifyException if reference is null
(@Nullable T reference)
| 132 | * @throws VerifyException if {@code reference} is {@code null} |
| 133 | */ |
| 134 | @CanIgnoreReturnValue |
| 135 | public static <T> T verifyNotNull(@Nullable T reference) { |
| 136 | return verifyNotNull(reference, "expected a non-null reference"); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Ensures that {@code reference} is non-null, throwing a {@code VerifyException} with a custom |