[
https://issues.apache.org/jira/browse/RATIS-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated RATIS-1957:
------------------------------
Priority: Minor (was: Major)
> 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
> Priority: Minor
>
> 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)