Skip to content

Commit dcee0d7

Browse files
authored
Merge pull request #262 from networknt/issue261
fixes #261 remove Java 8 stream code from the test case
2 parents 0df798b + 92aa6fc commit dcee0d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/networknt/schema/MaximumValidatorTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424
import java.io.IOException;
2525
import java.math.BigDecimal;
26-
import java.util.Arrays;
2726
import java.util.Set;
28-
import java.util.stream.Stream;
2927

3028
import static java.lang.String.format;
3129
import static org.junit.Assert.assertFalse;
@@ -46,9 +44,11 @@ public class MaximumValidatorTest extends BaseJsonSchemaValidatorTest {
4644
private static ObjectMapper bigIntegerMapper = new ObjectMapper().enable(DeserializationFeature.USE_BIG_INTEGER_FOR_INTS);
4745

4846
static String[][] augmentWithQuotes(String[][] values) {
49-
return Arrays.stream(values)
50-
.flatMap(pair -> Stream.of(pair, new String[]{pair[0], format("\"%s\"", pair[1])}))
51-
.toArray(String[][]::new);
47+
for(int i = 0; i < values.length; i++) {
48+
String[] pair = values[i];
49+
values[i] = new String[]{pair[0], format("\"%s\"", pair[1])};
50+
}
51+
return values;
5252
}
5353

5454
@Test

0 commit comments

Comments
 (0)