@@ -364,7 +364,7 @@ public XContentBuilder field(XContentBuilderString name, Map<String, Object> val
364
364
return this ;
365
365
}
366
366
367
- public XContentBuilder field (String name , List < Object > value ) throws IOException {
367
+ public XContentBuilder field (String name , List value ) throws IOException {
368
368
startArray (name );
369
369
for (Object o : value ) {
370
370
value (o );
@@ -373,7 +373,7 @@ public XContentBuilder field(String name, List<Object> value) throws IOException
373
373
return this ;
374
374
}
375
375
376
- public XContentBuilder field (XContentBuilderString name , List < Object > value ) throws IOException {
376
+ public XContentBuilder field (XContentBuilderString name , List value ) throws IOException {
377
377
startArray (name );
378
378
for (Object o : value ) {
379
379
value (o );
@@ -515,6 +515,7 @@ public XContentBuilder field(String name, Object value) throws IOException {
515
515
} else if (value instanceof ReadableInstant ) {
516
516
field (name , (ReadableInstant ) value );
517
517
} else if (value instanceof Map ) {
518
+ //noinspection unchecked
518
519
field (name , (Map <String , Object >) value );
519
520
} else if (value instanceof List ) {
520
521
field (name , (List ) value );
@@ -559,6 +560,7 @@ public XContentBuilder field(XContentBuilderString name, Object value) throws IO
559
560
} else if (value instanceof ReadableInstant ) {
560
561
field (name , (ReadableInstant ) value );
561
562
} else if (value instanceof Map ) {
563
+ //noinspection unchecked
562
564
field (name , (Map <String , Object >) value );
563
565
} else if (value instanceof List ) {
564
566
field (name , (List ) value );
@@ -602,6 +604,7 @@ public XContentBuilder value(Object value) throws IOException {
602
604
} else if (value instanceof ReadableInstant ) {
603
605
value ((ReadableInstant ) value );
604
606
} else if (value instanceof Map ) {
607
+ //noinspection unchecked
605
608
value ((Map <String , Object >) value );
606
609
} else {
607
610
throw new IOException ("Type not allowed [" + type + "]" );
0 commit comments