Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
New
Description
With java 8 we can trivially avoid looping over merge segments to be merged, switching from
for(SegmentCommitInfo info : merge.segments) {
toBeMerged.add(info);
}
to :
toBeMerged.addAll(merge.segments);