diff --git a/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java b/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java index d0ec2dca49d..e6880a810f3 100644 --- a/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java +++ b/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java @@ -1017,7 +1017,7 @@ public final class XContentBuilder implements BytesStream, Releasable { return this; } - public XContentBuilder map(Map map) throws IOException { + public XContentBuilder map(Map map) throws IOException { if (map == null) { return nullValue(); } @@ -1103,10 +1103,10 @@ public final class XContentBuilder implements BytesStream, Releasable { } - private void writeMap(Map map) throws IOException { + private void writeMap(Map map) throws IOException { generator.writeStartObject(); - for (Map.Entry entry : map.entrySet()) { + for (Map.Entry entry : map.entrySet()) { field(entry.getKey()); Object value = entry.getValue(); if (value == null) {