Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.1
-
None
-
None
Description
In Ratis, there are now two ways to check if an object is not null.
Use Preconditions.assertNotNull(). For example:
Preconditions.assertNotNull(getServerRpc(), "getServerRpc()");
Use Objects.requireNonNull(). For example:
Objects.requireNonNull(request, "request == null");
We should unify them.