szetszwo commented on code in PR #981:
URL: https://github.com/apache/ratis/pull/981#discussion_r1419693132
##########
ratis-common/src/main/java/org/apache/ratis/util/Preconditions.java:
##########
@@ -93,14 +94,8 @@ static void assertNull(Object object, String name) {
+ name + " = " + object + " != null, class = " + object.getClass());
}
- static <T> T assertNotNull(T object, Supplier<String> message) {
- assertTrue(object != null, message);
- return object;
- }
Review Comment:
For compatibility, I should keep `IllegalStateException` then.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]