From ac40eae3e3f7a45edba8401517dfd9ede0affc57 Mon Sep 17 00:00:00 2001 From: olivier bourgain Date: Fri, 8 Aug 2014 23:38:31 +0200 Subject: [PATCH] Core: Improve XContentBuilder API. --- .../org/elasticsearch/common/xcontent/XContentBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {