Skip to content

Commit

Permalink
pr change 2
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Jan 25, 2023
1 parent 93e3cef commit 64cde67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

package org.opensearch.common.xcontent;

import java.io.IOException;

/**
* Abstracts a <a href="http://en.wikipedia.org/wiki/Internet_media_type">Media Type</a> and a format parameter.
* Media types are used as values on Content-Type and Accept headers
Expand Down Expand Up @@ -66,6 +64,4 @@ default String typeWithSubtype() {
}

XContent xContent();

XContentBuilder contentBuilder() throws IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.opensearch.common.xcontent.smile.SmileXContent;
import org.opensearch.common.xcontent.yaml.YamlXContent;

import java.io.IOException;
import java.util.Locale;
import java.util.Map;

Expand Down Expand Up @@ -69,11 +68,6 @@ public String subtype() {
public XContent xContent() {
return JsonXContent.jsonXContent;
}

@Override
public XContentBuilder contentBuilder() throws IOException {
return JsonXContent.contentBuilder();
}
},
/**
* The jackson based smile binary format. Fast and compact binary format.
Expand All @@ -93,11 +87,6 @@ public String subtype() {
public XContent xContent() {
return SmileXContent.smileXContent;
}

@Override
public XContentBuilder contentBuilder() throws IOException {
return SmileXContent.contentBuilder();
}
},
/**
* A YAML based content type.
Expand All @@ -117,11 +106,6 @@ public String subtype() {
public XContent xContent() {
return YamlXContent.yamlXContent;
}

@Override
public XContentBuilder contentBuilder() throws IOException {
return YamlXContent.contentBuilder();
}
},
/**
* A CBOR based content type.
Expand All @@ -141,11 +125,6 @@ public String subtype() {
public XContent xContent() {
return CborXContent.cborXContent;
}

@Override
public XContentBuilder contentBuilder() throws IOException {
return CborXContent.contentBuilder();
}
};

/** a parser of media types */
Expand Down

0 comments on commit 64cde67

Please sign in to comment.