File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/main/java/com/fasterxml/jackson/databind/node Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ Project: jackson-databind
13
13
#2977 : Incompatible `FAIL_ON_MISSING_PRIMITIVE_PROPERTIES` and
14
14
field level `@JsonProperty`
15
15
(reported by @GeorgiPetkov)
16
+ #3120 : Return `ListIterator` from `ArrayNode.elements()`
17
+ (requested by @ludgerb)
18
+ (fix by Joo-Hyuk K)
16
19
#3241 : `constructorDetector` seems to invalidate `defaultSetterInfo`
17
20
for nullability
18
21
(reported by @joca-bt)
Original file line number Diff line number Diff line change @@ -246,9 +246,16 @@ public int size() {
246
246
@ Override // since 2.10
247
247
public boolean isEmpty () { return _children .isEmpty (); }
248
248
249
+ /**
250
+ * {@inheritDoc}
251
+ *<p>
252
+ * NOTE: actual underlying implementation returns {@link java.util.ListIterator}
253
+ * from {@link java.util.List#listIterator()} that contains elements, since Jackson 2.18
254
+ * (before was only generic {@link java.util.Iterator}).
255
+ */
249
256
@ Override
250
257
public Iterator <JsonNode > elements () {
251
- return _children .iterator ();
258
+ return _children .listIterator ();
252
259
}
253
260
254
261
@ Override
You can’t perform that action at this time.
0 commit comments