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)
| 134 | */ |
| 135 | |
| 136 | @CanIgnoreReturnValue |
| 137 | public static <T> T verifyNotNull(@Nullable T reference) { |
| 138 | return verifyNotNull(reference, "expected a non-null reference"); |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Ensures that {@code reference} is non-null, throwing a {@code VerifyException} with a custom |