diff options
author | Ryan Ernst <ryan@iernst.net> | 2016-04-18 14:32:18 -0700 |
---|---|---|
committer | Ryan Ernst <ryan@iernst.net> | 2016-04-18 14:32:18 -0700 |
commit | 523b071836be9c9b954c9e45a026311c83483c05 (patch) | |
tree | 5fb0857069ce90d02f56d49d844981292d37b98d /core/src/main/java/org/elasticsearch/search/suggest/completion | |
parent | 8ce71f8f25fbf014fb595df4e50f4cd008d0dfbf (diff) |
Internal: Remove XContentBuilderString
This was previously used by xcontentbuilder to support camelCase.
However, it is no longer used, and can be replaced with just String.
Diffstat (limited to 'core/src/main/java/org/elasticsearch/search/suggest/completion')
-rw-r--r-- | core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java b/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java index 7bb96aeedc..c8ed562f9c 100644 --- a/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java +++ b/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionStats.java @@ -26,7 +26,6 @@ import org.elasticsearch.common.io.stream.Streamable; import org.elasticsearch.common.unit.ByteSizeValue; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; -import org.elasticsearch.common.xcontent.XContentBuilderString; import java.io.IOException; @@ -123,10 +122,10 @@ public class CompletionStats implements Streamable, ToXContent { } static final class Fields { - static final XContentBuilderString COMPLETION = new XContentBuilderString("completion"); - static final XContentBuilderString SIZE_IN_BYTES = new XContentBuilderString("size_in_bytes"); - static final XContentBuilderString SIZE = new XContentBuilderString("size"); - static final XContentBuilderString FIELDS = new XContentBuilderString("fields"); + static final String COMPLETION = "completion"; + static final String SIZE_IN_BYTES = "size_in_bytes"; + static final String SIZE = "size"; + static final String FIELDS = "fields"; } public void add(CompletionStats completion) { |