From e25ec82902d190ab25d2cfdc001b428105ed468f Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Mon, 9 Sep 2024 16:52:41 +1200 Subject: [PATCH] spotless Signed-off-by: Thomas Farr --- .../opensearch/core/DeleteByQueryRethrottleResponse.java | 5 +++-- .../java/org/opensearch/client/codegen/model/Shape.java | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/java-client/src/main/java/org/opensearch/client/opensearch/core/DeleteByQueryRethrottleResponse.java b/java-client/src/main/java/org/opensearch/client/opensearch/core/DeleteByQueryRethrottleResponse.java index 3880fe3604..4ceb7faa26 100644 --- a/java-client/src/main/java/org/opensearch/client/opensearch/core/DeleteByQueryRethrottleResponse.java +++ b/java-client/src/main/java/org/opensearch/client/opensearch/core/DeleteByQueryRethrottleResponse.java @@ -37,7 +37,6 @@ import org.opensearch.client.json.JsonpDeserializer; import org.opensearch.client.json.ObjectBuilderDeserializer; import org.opensearch.client.json.ObjectDeserializer; -import org.opensearch.client.opensearch.tasks.ListResponse; import org.opensearch.client.opensearch.tasks.TaskListResponseBase; import org.opensearch.client.util.ObjectBuilder; @@ -62,7 +61,9 @@ public static DeleteByQueryRethrottleResponse of(Function implements ObjectBuilder { + public static class Builder extends TaskListResponseBase.AbstractBuilder + implements + ObjectBuilder { @Override protected Builder self() { return this; diff --git a/java-codegen/src/main/java/org/opensearch/client/codegen/model/Shape.java b/java-codegen/src/main/java/org/opensearch/client/codegen/model/Shape.java index 52f9d4c3be..c44c8d72d9 100644 --- a/java-codegen/src/main/java/org/opensearch/client/codegen/model/Shape.java +++ b/java-codegen/src/main/java/org/opensearch/client/codegen/model/Shape.java @@ -55,7 +55,11 @@ public JavaClassKind getClassKind() { } public boolean isAbstract() { - var refKinds = incomingReferences.entrySet().stream().filter(e -> !e.getValue().isEmpty()).map(Map.Entry::getKey).collect(Collectors.toSet()); + var refKinds = incomingReferences.entrySet() + .stream() + .filter(e -> !e.getValue().isEmpty()) + .map(Map.Entry::getKey) + .collect(Collectors.toSet()); return !refKinds.isEmpty() && refKinds.stream().noneMatch(ReferenceKind::isConcreteUsage); }