Skip to content

Commit

Permalink
Fix compilation problems
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 31, 2024
1 parent f026855 commit 09d36a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static JsonNode mapFromComplianceNode(ObjectNode expected) {
}
} else {
ObjectNode object = expected.objectNode();
for (Map.Entry<String, JsonNode> field : (Iterable<? extends Map.Entry<String, JsonNode>>) expected::fields) {
for (Map.Entry<String, JsonNode> field : expected.properties()) {
object.set(field.getKey(), mapFromComplianceNode((ObjectNode) field.getValue()));
}
return object;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void unquotedKey() throws IOException {
String expectedKey = toml.toString();
toml.append(" = 0");
ObjectNode node = (ObjectNode) NO_LIMITS_MAPPER.readTree(toml.toString());
Assert.assertEquals(expectedKey, node.propertyNames().next());
Assert.assertEquals(expectedKey, node.propertyNames().iterator().next());
}

@Test
Expand Down

0 comments on commit 09d36a6

Please sign in to comment.