diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/cbor/CborXContentGenerator.java b/core/src/main/java/org/elasticsearch/common/xcontent/cbor/CborXContentGenerator.java index e63a928109d..119cb5c98c6 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/cbor/CborXContentGenerator.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/cbor/CborXContentGenerator.java @@ -20,20 +20,14 @@ package org.elasticsearch.common.xcontent.cbor; import com.fasterxml.jackson.core.JsonGenerator; -import org.elasticsearch.common.Strings; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContentGenerator; import java.io.OutputStream; -import java.util.Collections; import java.util.Set; public class CborXContentGenerator extends JsonXContentGenerator { - public CborXContentGenerator(JsonGenerator jsonGenerator, OutputStream os) { - this(jsonGenerator, os, Collections.emptySet(), Collections.emptySet()); - } - public CborXContentGenerator(JsonGenerator jsonGenerator, OutputStream os, Set includes, Set excludes) { super(jsonGenerator, os, includes, excludes); } diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/json/JsonXContentGenerator.java b/core/src/main/java/org/elasticsearch/common/xcontent/json/JsonXContentGenerator.java index 0742e4a716a..07ae16b96c6 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/json/JsonXContentGenerator.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/json/JsonXContentGenerator.java @@ -44,7 +44,6 @@ import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.util.Collections; import java.util.Objects; import java.util.Set; @@ -73,10 +72,6 @@ public class JsonXContentGenerator implements XContentGenerator { private static final DefaultPrettyPrinter.Indenter INDENTER = new DefaultIndenter(" ", LF.getValue()); private boolean prettyPrint = false; - public JsonXContentGenerator(JsonGenerator jsonGenerator, OutputStream os) { - this(jsonGenerator, os, Collections.emptySet(), Collections.emptySet()); - } - public JsonXContentGenerator(JsonGenerator jsonGenerator, OutputStream os, Set includes, Set excludes) { Objects.requireNonNull(includes, "Including filters must not be null"); Objects.requireNonNull(excludes, "Excluding filters must not be null"); diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/smile/SmileXContentGenerator.java b/core/src/main/java/org/elasticsearch/common/xcontent/smile/SmileXContentGenerator.java index afa420805f7..f368c0e383f 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/smile/SmileXContentGenerator.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/smile/SmileXContentGenerator.java @@ -20,20 +20,14 @@ package org.elasticsearch.common.xcontent.smile; import com.fasterxml.jackson.core.JsonGenerator; -import org.elasticsearch.common.Strings; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContentGenerator; import java.io.OutputStream; -import java.util.Collections; import java.util.Set; public class SmileXContentGenerator extends JsonXContentGenerator { - public SmileXContentGenerator(JsonGenerator jsonGenerator, OutputStream os) { - this(jsonGenerator, os, Collections.emptySet(), Collections.emptySet()); - } - public SmileXContentGenerator(JsonGenerator jsonGenerator, OutputStream os, Set includes, Set excludes) { super(jsonGenerator, os, includes, excludes); } diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/yaml/YamlXContentGenerator.java b/core/src/main/java/org/elasticsearch/common/xcontent/yaml/YamlXContentGenerator.java index d2c53c8a020..0d969c21a0f 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/yaml/YamlXContentGenerator.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/yaml/YamlXContentGenerator.java @@ -20,20 +20,14 @@ package org.elasticsearch.common.xcontent.yaml; import com.fasterxml.jackson.core.JsonGenerator; -import org.elasticsearch.common.Strings; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContentGenerator; import java.io.OutputStream; -import java.util.Collections; import java.util.Set; public class YamlXContentGenerator extends JsonXContentGenerator { - public YamlXContentGenerator(JsonGenerator jsonGenerator, OutputStream os) { - this(jsonGenerator, os, Collections.emptySet(), Collections.emptySet()); - } - public YamlXContentGenerator(JsonGenerator jsonGenerator, OutputStream os, Set includes, Set excludes) { super(jsonGenerator, os, includes, excludes); }