[ 
https://issues.apache.org/jira/browse/YETUS-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158341#comment-16158341
 ] 

Kengo Seki commented on YETUS-538:
----------------------------------

LGTM, will commit shortly.

> set capacity on ArrayList init where possible
> ---------------------------------------------
>
>                 Key: YETUS-538
>                 URL: https://issues.apache.org/jira/browse/YETUS-538
>             Project: Yetus
>          Issue Type: Improvement
>          Components: Audience Annotations
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: Sean Busbey
>            Assignee: Peter Cseh
>            Priority: Minor
>              Labels: beginner
>         Attachments: YETUS-538.00.patch
>
>
> we have one case of not giving the ArrayList constructor an initial capacity
> {code}
> Busbey-MBA:yetus busbey$ git grep "new ArrayList"
> audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/RootDocProcessor.java:
>       List<Object> list = new ArrayList<Object>(array.length);
> audience-annotations-component/audience-annotations/src/main/java/org/apache/yetus/audience/tools/StabilityOptions.java:
>     List<String[]> optionsList = new ArrayList<String[]>();
> Busbey-MBA:yetus busbey$ 
> {code}
> {{StabilityOptions}} should be updated to use {{options.length}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to