From aa142374320f0c9d750fc7d565faa79c564c39e2 Mon Sep 17 00:00:00 2001 From: Shivansh Arora Date: Tue, 3 Sep 2024 17:41:29 +0530 Subject: [PATCH] apply spotless Signed-off-by: Shivansh Arora --- .../cluster/coordination/PublishRequest.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/cluster/coordination/PublishRequest.java b/server/src/main/java/org/opensearch/cluster/coordination/PublishRequest.java index 9b20e3a3f5cd3..5be777f7fec2d 100644 --- a/server/src/main/java/org/opensearch/cluster/coordination/PublishRequest.java +++ b/server/src/main/java/org/opensearch/cluster/coordination/PublishRequest.java @@ -77,7 +77,9 @@ public boolean equals(Object o) { PublishRequest that = (PublishRequest) o; - return acceptedState.term() == that.acceptedState.term() && acceptedState.version() == that.acceptedState.version() && Objects.equals(acceptedManifest, that.acceptedManifest); + return acceptedState.term() == that.acceptedState.term() + && acceptedState.version() == that.acceptedState.version() + && Objects.equals(acceptedManifest, that.acceptedManifest); } @Override @@ -87,6 +89,14 @@ public int hashCode() { @Override public String toString() { - return "PublishRequest{term=" + acceptedState.term() + ", version=" + acceptedState.version() + ", state=" + acceptedState + ", manifest=" + acceptedManifest + '}'; + return "PublishRequest{term=" + + acceptedState.term() + + ", version=" + + acceptedState.version() + + ", state=" + + acceptedState + + ", manifest=" + + acceptedManifest + + '}'; } }