[ 
https://issues.apache.org/jira/browse/RATIS-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze resolved RATIS-1957.
-------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

The pull request is now merged.

> 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
>             Fix For: 3.1.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to