jianghuazhu commented on code in PR #1256:
URL: https://github.com/apache/ratis/pull/1256#discussion_r2083421576
##########
ratis-common/src/main/java/org/apache/ratis/util/ReferenceCountedLeakDetector.java:
##########
@@ -202,7 +203,7 @@ public synchronized boolean release() {
}
if (released) {
- Preconditions.assertNotNull(removeMethod, () -> "Not yet retained
(removeMethod == null): " + valueClass);
+ Objects.requireNonNull(removeMethod, "Not yet retained (removeMethod
== null): " + valueClass);
Review Comment:
Thanks @szetszwo for the comment and review.
I have updated it.
--
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]