Skip to content

Commit

Permalink
Merge branch '2.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 31, 2024
2 parents efdb577 + 6729641 commit 3fcd03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Project: jackson-databind
`forEachEntry()`
#4867: Add `Optional<JsonNode> JsonNode.asOptional()` convenience method
(fix by Joo-Hyuk K)
#4869: Add `JsonNode.values()` to replace `elements()`

2.18.3 (not yet released)

Expand Down
5 changes: 1 addition & 4 deletions src/main/java/tools/jackson/databind/node/ArrayNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ public JsonNode get(int index) {
@Override
public JsonNode get(String fieldName) { return null; }

/**
* @since 2.19
*/
@Override
public Optional<JsonNode> optional(int index) {
return Optional.ofNullable(get(index));
Expand Down Expand Up @@ -273,7 +270,7 @@ public Spliterator<JsonNode> valueSpliterator() {
return _children.spliterator();
}

@Override // @since 2.19
@Override
public Stream<JsonNode> valueStream() {
return _children.stream();
}
Expand Down

0 comments on commit 3fcd03c

Please sign in to comment.