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

Attila Doroszlai updated HDDS-10151:
------------------------------------
    Attachment: HDDS-10151.txt

> Random object created and used only once
> ----------------------------------------
>
>                 Key: HDDS-10151
>                 URL: https://issues.apache.org/jira/browse/HDDS-10151
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Priority: Major
>              Labels: GoodForNewContributors
>         Attachments: HDDS-10151.txt
>
>
> Replace single-use {{Random}} objects by {{RandomUtils}} or similar.
> Example:
> {code}
> -      int index = new Random().nextInt(dnInfos.size());
> +      int index = RandomUtils.nextInt(0, dnInfos.size());
> {code}
> See attached file for list of items to fix.



--
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