From cbb681e9e19b9031ff5b8f07d735c8e2536966b9 Mon Sep 17 00:00:00 2001 From: pieper Date: Fri, 29 Sep 2023 07:29:58 +0200 Subject: [PATCH] Tabs vs. spaces fix. Signed-off-by: pieper --- .../get_field_mapping/TypeFieldMappings.java | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/java-client/src/main/java/org/opensearch/client/opensearch/indices/get_field_mapping/TypeFieldMappings.java b/java-client/src/main/java/org/opensearch/client/opensearch/indices/get_field_mapping/TypeFieldMappings.java index 1179065c32..f78353b09c 100644 --- a/java-client/src/main/java/org/opensearch/client/opensearch/indices/get_field_mapping/TypeFieldMappings.java +++ b/java-client/src/main/java/org/opensearch/client/opensearch/indices/get_field_mapping/TypeFieldMappings.java @@ -54,7 +54,7 @@ @JsonpDeserializable public class TypeFieldMappings implements JsonpSerializable { - private final Map mappings; + private final Map mappings; // --------------------------------------------------------------------------------------------- @@ -69,8 +69,8 @@ public static TypeFieldMappings of(Function mappings() { return this.mappings; } @@ -87,13 +87,13 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("mappings"); - generator.writeStartObject(); - for (Map.Entry item0 : this.mappings.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); + generator.writeStartObject(); + for (Map.Entry item0 : this.mappings.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); - } - generator.writeEnd(); + } + generator.writeEnd(); } @@ -104,40 +104,40 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends ObjectBuilderBase implements ObjectBuilder { - private Map mappings; - - /** - * Required - API name: {@code mappings} - */ - public Builder mappings(Map value) { - this.mappings = value; - return this; - } - - /** - * Add a key/value to {@link #mappings(Map)}, creating the map if needed. - */ - public Builder putMappings(String key, FieldMapping value) { - if (this.mappings == null) { - this.mappings = new HashMap<>(); - } - this.mappings.put(key, value); - return this; - } - - /** - * Set {@link #mappings(Map)} to a singleton map. - */ - public Builder mappings(String key, Function> fn) { - return this.mappings(Collections.singletonMap(key, fn.apply(new FieldMapping.Builder()).build())); - } - - /** - * Add a key/value to {@link #mappings(Map)}, creating the map if needed. - */ - public Builder putMappings(String key, Function> fn) { - return this.putMappings(key, fn.apply(new FieldMapping.Builder()).build()); - } + private Map mappings; + + /** + * Required - API name: {@code mappings} + */ + public Builder mappings(Map value) { + this.mappings = value; + return this; + } + + /** + * Add a key/value to {@link #mappings(Map)}, creating the map if needed. + */ + public Builder putMappings(String key, FieldMapping value) { + if (this.mappings == null) { + this.mappings = new HashMap<>(); + } + this.mappings.put(key, value); + return this; + } + + /** + * Set {@link #mappings(Map)} to a singleton map. + */ + public Builder mappings(String key, Function> fn) { + return this.mappings(Collections.singletonMap(key, fn.apply(new FieldMapping.Builder()).build())); + } + + /** + * Add a key/value to {@link #mappings(Map)}, creating the map if needed. + */ + public Builder putMappings(String key, Function> fn) { + return this.putMappings(key, fn.apply(new FieldMapping.Builder()).build()); + } /** * Builds a {@link TypeFieldMappings}. @@ -162,7 +162,7 @@ public TypeFieldMappings build() { protected static void setupTypeFieldMappingsDeserializer(ObjectDeserializer op) { - op.add(Builder::mappings, JsonpDeserializer.stringMapDeserializer(FieldMapping._DESERIALIZER), "mappings"); + op.add(Builder::mappings, JsonpDeserializer.stringMapDeserializer(FieldMapping._DESERIALIZER), "mappings"); }