Skip to content

Commit 7aa0aec

Browse files
committed
Apply spotless
Signed-off-by: Mohit Godwani <[email protected]>
1 parent ec7e527 commit 7aa0aec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import org.opensearch.Version;
1212
import org.opensearch.action.support.master.info.ClusterInfoRequest;
1313
import org.opensearch.common.io.stream.BytesStreamOutput;
14-
import org.opensearch.common.util.set.Sets;
15-
import org.opensearch.core.common.io.stream.BytesStreamInput;
1614
import org.opensearch.core.common.io.stream.StreamInput;
1715
import org.opensearch.test.OpenSearchTestCase;
1816

@@ -30,8 +28,7 @@ public void testGetIndexRequestExtendsClusterInfoRequestOfDeprecatedClassPath()
3028
public void testGetIndexRequestWriteableWithLatestNode() throws IOException {
3129
// Write to 2.17 stream
3230
try (BytesStreamOutput output = new BytesStreamOutput()) {
33-
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test")
34-
.addFeatures(GetIndexRequest.Feature.values());
31+
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test").addFeatures(GetIndexRequest.Feature.values());
3532
output.setVersion(Version.V_2_17_0);
3633
getIndexRequest.writeTo(output);
3734
try (StreamInput in = output.bytes().streamInput()) {
@@ -44,8 +41,7 @@ public void testGetIndexRequestWriteableWithLatestNode() throws IOException {
4441
public void testGetIndexRequestWriteableWithOldNode() throws IOException {
4542
// Write to 2.1 stream
4643
try (BytesStreamOutput output = new BytesStreamOutput()) {
47-
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test")
48-
.addFeatures(GetIndexRequest.Feature.values());
44+
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test").addFeatures(GetIndexRequest.Feature.values());
4945
output.setVersion(Version.V_2_16_0);
5046
getIndexRequest.writeTo(output);
5147
try (StreamInput in = output.bytes().streamInput()) {

0 commit comments

Comments
 (0)