You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2025/12/02 14:02:00 UTC

[jira] (HDDS-14057) Do not use Guava Preconditions.checkNotNull(..)

    [ https://issues.apache.org/jira/browse/HDDS-14057 ]


    Tsz-wo Sze deleted comment on HDDS-14057:
    -----------------------------------

was (Author: szetszwo):
bq. better tool support: ...

Below is an example:

!image-2025-12-02-05-56-38-471.png|width=730,height=259!

> Do not use Guava Preconditions.checkNotNull(..)
> -----------------------------------------------
>
>                 Key: HDDS-14057
>                 URL: https://issues.apache.org/jira/browse/HDDS-14057
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Tsz-wo Sze
>            Priority: Major
>
> Currently, there are 496 occurrences of Guava Preconditions.checkNotNull(..).  It is better to use Java Objects.requireNonNull(..) instead.  We should file subtasks to fix them in order to avoid a huge code change.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org