File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2222import static java .lang .Integer .highestOneBit ;
2323import static java .lang .Integer .numberOfTrailingZeros ;
2424import static java .util .Objects .requireNonNull ;
25+ import static org .apache .jackrabbit .guava .common .collect .Iterables .concat ;
2526import static org .apache .jackrabbit .oak .segment .MapEntry .newMapEntry ;
2627
2728import java .util .ArrayList ;
3031import java .util .Iterator ;
3132import java .util .List ;
3233import java .util .Objects ;
33- import java .util .stream .Collectors ;
34- import java .util .stream .StreamSupport ;
3534
3635import org .apache .jackrabbit .guava .common .collect .ComparisonChain ;
3736import org .apache .jackrabbit .oak .commons .collections .IteratorUtils ;
@@ -338,7 +337,7 @@ public Iterator<String> iterator() {
338337 }
339338 });
340339 }
341- return IteratorUtils . toIterable (keys . stream (). flatMap ( StreamUtils :: toStream ). iterator () );
340+ return concat (keys );
342341 }
343342
344343 RecordId [] ids = new RecordId [size ];
@@ -388,7 +387,7 @@ public Iterator<MapEntry> iterator() {
388387 }
389388 });
390389 }
391- return IteratorUtils . toIterable (entries . stream (). flatMap ( StreamUtils :: toStream ). iterator () );
390+ return concat (entries );
392391 }
393392
394393 MapEntry [] entries = new MapEntry [size ];
You can’t perform that action at this time.
0 commit comments