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

Attila Doroszlai updated HDDS-8804:
-----------------------------------
    Description: 
{{SupplierWithIOException<T>}} can be replaced with {{CheckedSupplier<T, 
IOException>}}.

* Replace {{SupplierWithIOException<T>` with {{CheckedSupplier<T, IOException>`.
* Replace {{FunctionWithServiceException` with {{CheckedFunction`
* Make {{TracingUtil` more generic by accepting a {{CheckedSupplier` with any 
exception.  This lets us remove the overloaded methods with {{Supplier` and 
{{Callable`, which in turn makes casts unnecessary.
* Provide a version of the {{TracingUtil` methods for {{CheckedRunnable`, to 
get rid of ugly {{Supplier<Void>`.
* Replace {{Supplier<Boolean>` with {{BooleanSupplier` and {{Supplier<Integer>` 
with {{IntSupplier`
* Replace {{BiFunction<..., ..., Boolean>` with {{BiPredicate<..., ...>`


  was:{{SupplierWithIOException<T>}} can be replaced with {{CheckedSupplier<T, 
IOException>}}.


> Replace SupplierWithIOException and FunctionWithServiceException
> ----------------------------------------------------------------
>
>                 Key: HDDS-8804
>                 URL: https://issues.apache.org/jira/browse/HDDS-8804
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> {{SupplierWithIOException<T>}} can be replaced with {{CheckedSupplier<T, 
> IOException>}}.
> * Replace {{SupplierWithIOException<T>` with {{CheckedSupplier<T, 
> IOException>`.
> * Replace {{FunctionWithServiceException` with {{CheckedFunction`
> * Make {{TracingUtil` more generic by accepting a {{CheckedSupplier` with any 
> exception.  This lets us remove the overloaded methods with {{Supplier` and 
> {{Callable`, which in turn makes casts unnecessary.
> * Provide a version of the {{TracingUtil` methods for {{CheckedRunnable`, to 
> get rid of ugly {{Supplier<Void>`.
> * Replace {{Supplier<Boolean>` with {{BooleanSupplier` and 
> {{Supplier<Integer>` with {{IntSupplier`
> * Replace {{BiFunction<..., ..., Boolean>` with {{BiPredicate<..., ...>`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to