Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Mohit Godwani <[email protected]>
  • Loading branch information
mgodwan committed Sep 1, 2024
1 parent ec7e527 commit 1d76058
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import org.opensearch.Version;
import org.opensearch.action.support.master.info.ClusterInfoRequest;
import org.opensearch.common.io.stream.BytesStreamOutput;
import org.opensearch.common.util.set.Sets;
import org.opensearch.core.common.io.stream.BytesStreamInput;
import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.test.OpenSearchTestCase;

Expand All @@ -30,8 +28,7 @@ public void testGetIndexRequestExtendsClusterInfoRequestOfDeprecatedClassPath()
public void testGetIndexRequestWriteableWithLatestNode() throws IOException {
// Write to 2.17 stream
try (BytesStreamOutput output = new BytesStreamOutput()) {
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test")
.addFeatures(GetIndexRequest.Feature.values());
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test").addFeatures(GetIndexRequest.Feature.values());
output.setVersion(Version.V_2_17_0);
getIndexRequest.writeTo(output);
try (StreamInput in = output.bytes().streamInput()) {
Expand All @@ -44,8 +41,7 @@ public void testGetIndexRequestWriteableWithLatestNode() throws IOException {
public void testGetIndexRequestWriteableWithOldNode() throws IOException {
// Write to 2.1 stream
try (BytesStreamOutput output = new BytesStreamOutput()) {
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test")
.addFeatures(GetIndexRequest.Feature.values());
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test").addFeatures(GetIndexRequest.Feature.values());
output.setVersion(Version.V_2_16_0);
getIndexRequest.writeTo(output);
try (StreamInput in = output.bytes().streamInput()) {
Expand Down

0 comments on commit 1d76058

Please sign in to comment.