Tsz-wo Sze created RATIS-1957:
---------------------------------
Summary: Preconditions incorrectly sets an exception message
Key: RATIS-1957
URL: https://issues.apache.org/jira/browse/RATIS-1957
Project: Ratis
Issue Type: Improvement
Components: util
Reporter: Tsz-wo Sze
Assignee: Tsz-wo Sze
In CollectionUtils.putNew, it asserts if a returned value is null. However,
the exception message is incorrect.
{code}
IllegalStateException:
org.apache.ratis.util.CollectionUtils$$Lambda$10/1099387841@d0d3f67
{code}
The bug in Preconditions.assertNull -- it prints the Supplier<String> object
instead of Supplier.get().
--
This message was sent by Atlassian Jira
(v8.20.10#820010)