[ https://issues.apache.org/jira/browse/HUDI-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HUDI-302: -------------------------------- Labels: newbie pull-request-available (was: newbie) > Simplify count operation in HoodieDefaultTimeline::countInstants > ---------------------------------------------------------------- > > Key: HUDI-302 > URL: https://issues.apache.org/jira/browse/HUDI-302 > Project: Apache Hudi (incubating) > Issue Type: Bug > Components: Common Core > Reporter: Jakob Homan > Assignee: Pratyaksh Sharma > Priority: Trivial > Labels: newbie, pull-request-available > > In {{HoodieDefaultTimeline}} there's a conversion of an List to a stream in > order to count the elements. This is unnecessary since the underlying List > has a {{size()}} method that returns the same result. > {code:java} > @Override > public int countInstants() { > return new Long(instants.stream().count()).intValue(); > } > {code} > *Note:* This is a newbie ticket designed as a starter task for a new > contributor. -- This message was sent by Atlassian Jira (v8.3.4#803005)