File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
main/java/com/fasterxml/jackson/databind/node
test/java/com/fasterxml/jackson/databind/jsonschema Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 23
23
public class ArrayNode
24
24
extends ContainerNode <ArrayNode >
25
25
{
26
- private final List <JsonNode > _children = new ArrayList < JsonNode >() ;
26
+ private final List <JsonNode > _children ;
27
27
28
- public ArrayNode (JsonNodeFactory nc ) { super (nc ); }
28
+ public ArrayNode (JsonNodeFactory nf ) {
29
+ super (nf );
30
+ _children = new ArrayList <JsonNode >();
31
+ }
32
+
33
+ /**
34
+ * @since 2.7
35
+ */
36
+ public ArrayNode (JsonNodeFactory nf , List <JsonNode > children ) {
37
+ super (nf );
38
+ _children = children ;
39
+ }
29
40
30
41
@ Override
31
42
protected JsonNode _at (JsonPointer ptr ) {
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public void optionalProperty(BeanProperty prop) throws JsonMappingException {
160
160
ser .acceptJsonFormatVisitor (new JsonFormatVisitorWrapper .Base () {
161
161
@ Override
162
162
public JsonNumberFormatVisitor expectNumberFormat (
163
- JavaType type ) throws JsonMappingException {
163
+ JavaType t ) throws JsonMappingException {
164
164
return new JsonNumberFormatVisitor () {
165
165
@ Override
166
166
public void format (JsonValueFormat format ) {
@@ -178,7 +178,7 @@ public void numberType(NumberType numberType) {
178
178
}
179
179
180
180
@ Override
181
- public JsonIntegerFormatVisitor expectIntegerFormat (JavaType type ) throws JsonMappingException {
181
+ public JsonIntegerFormatVisitor expectIntegerFormat (JavaType t ) throws JsonMappingException {
182
182
return new JsonIntegerFormatVisitor () {
183
183
@ Override
184
184
public void format (JsonValueFormat format ) {
You can’t perform that action at this time.
0 commit comments