diff --git a/server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java b/server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java index cfa9c04f93167..704d8a0fca409 100644 --- a/server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java +++ b/server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java @@ -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; @@ -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()) { @@ -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()) {