diff --git a/java-client/src/main/java/org/opensearch/client/opensearch/core/bulk/UpdateOperation.java b/java-client/src/main/java/org/opensearch/client/opensearch/core/bulk/UpdateOperation.java index 162ac2ca76..3e1c9dd890 100644 --- a/java-client/src/main/java/org/opensearch/client/opensearch/core/bulk/UpdateOperation.java +++ b/java-client/src/main/java/org/opensearch/client/opensearch/core/bulk/UpdateOperation.java @@ -15,7 +15,7 @@ * not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an @@ -134,9 +134,9 @@ public static class Builder extends BulkOperationBase.AbstractBuilder implements ObjectBuilder> { - private UpdateOperationData data; + private UpdateOperationData data; - @Nullable + @Nullable private TDocument document; @Nullable @@ -157,36 +157,36 @@ public static class Builder extends BulkOperationBase.AbstractBuilder @Nullable private Script script; - /** - * API name: {@code document} - */ - public final Builder document(TDocument value) { - this.document = value; - return this; - } + /** + * API name: {@code document} + */ + public final Builder document(TDocument value) { + this.document = value; + return this; + } /** * API name: {@code docAsUpsert} */ public final Builder docAsUpsert(@Nullable Boolean value) { - this.docAsUpsert = value; - return this; + this.docAsUpsert = value; + return this; } /** * API name: {@code upsert} */ public final Builder upsert(@Nullable TDocument value) { - this.upsert = value; - return this; + this.upsert = value; + return this; } /** * API name: {@code script} */ public final Builder script(@Nullable Script value) { - this.script = value; - return this; + this.script = value; + return this; } /** @@ -223,18 +223,18 @@ protected Builder self() { * Builds a {@link UpdateOperation}. * * @throws NullPointerException - * if some of the required fields are null. + * if some of the required fields are null. */ public UpdateOperation build() { _checkSingleUse(); - data = new UpdateOperationData.Builder() - .document(document) - .docAsUpsert(docAsUpsert) - .script(script) - .upsert(upsert) - .tDocumentSerializer(tDocumentSerializer) - .build(); + data = new UpdateOperationData.Builder() + .document(document) + .docAsUpsert(docAsUpsert) + .script(script) + .upsert(upsert) + .tDocumentSerializer(tDocumentSerializer) + .build(); return new UpdateOperation(this); }