mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
StreamToLoop: special handling of skip(1)
This commit is contained in:
@@ -204,7 +204,7 @@ public class Main {
|
||||
|
||||
public static IntSummaryStatistics testNestedSkip(int... values) {
|
||||
IntSummaryStatistics stat = new IntSummaryStatistics();
|
||||
long toSkipOuter = 1;
|
||||
long toSkipOuter = 2;
|
||||
for (int x : values) {
|
||||
if (toSkipOuter > 0) {
|
||||
toSkipOuter--;
|
||||
@@ -226,7 +226,7 @@ public class Main {
|
||||
|
||||
public static IntSummaryStatistics testNestedSkip2(int... values) {
|
||||
IntSummaryStatistics stat = new IntSummaryStatistics();
|
||||
long toSkip = 1;
|
||||
long toSkip = 2;
|
||||
for (int x : values) {
|
||||
if (x > 0) {
|
||||
long toSkipInner = x;
|
||||
|
||||
Reference in New Issue
Block a user