Skip to content

Commit 17e3492

Browse files
committed
cleanup
1 parent 408709a commit 17e3492

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/com/saasquatch/json_schema_inferrer/JsonSchemaInferrerExamplesTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.net.URISyntaxException;
88
import java.net.URL;
99
import java.util.ArrayList;
10+
import java.util.Arrays;
1011
import java.util.Collection;
1112
import java.util.Collections;
1213
import java.util.List;
@@ -153,11 +154,11 @@ private String processGitHubDownloadUrl(String url, String commitHash) {
153154
private static Collection<JsonSchemaInferrer> getTestInferrers() {
154155
final List<JsonSchemaInferrer> inferrers = new ArrayList<>();
155156
for (SpecVersion specVersion : SpecVersion.values()) {
156-
for (boolean inferStringFormat : new boolean[] {true, false}) {
157+
for (boolean inferStringFormat : Arrays.asList(true, false)) {
157158
if (specVersion == SpecVersion.DRAFT_07 && inferStringFormat) {
158159
/*
159-
* Skip test for infer format with draft-07 due to a disagreement between Java time and
160-
* the schema library on what a valid time string is.
160+
* Skip tests for inferring format with draft-07 due to a disagreement between Java time
161+
* and the schema library on what a valid time string is.
161162
*/
162163
continue;
163164
}

0 commit comments

Comments
 (0)