Skip to content

Commit 583841d

Browse files
wangzhenhui1992javanna
authored andcommitted
Remove static import from HLRC doc snippet (#34834)
1 parent 5a5166a commit 583841d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/rest/src/test/java/org/elasticsearch/client/documentation/RestClientDocumentation.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import org.apache.http.ssl.SSLContextBuilder;
3737
import org.apache.http.ssl.SSLContexts;
3838
import org.apache.http.util.EntityUtils;
39-
import org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory;
39+
import org.elasticsearch.client.HttpAsyncResponseConsumerFactory;
4040
import org.elasticsearch.client.Node;
4141
import org.elasticsearch.client.NodeSelector;
4242
import org.elasticsearch.client.Request;
@@ -84,7 +84,8 @@ public class RestClientDocumentation {
8484
RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
8585
builder.addHeader("Authorization", "Bearer " + TOKEN); // <1>
8686
builder.setHttpAsyncResponseConsumerFactory( // <2>
87-
new HeapBufferedResponseConsumerFactory(30 * 1024 * 1024 * 1024));
87+
new HttpAsyncResponseConsumerFactory
88+
.HeapBufferedResponseConsumerFactory(30 * 1024 * 1024 * 1024));
8889
COMMON_OPTIONS = builder.build();
8990
}
9091
// end::rest-client-options-singleton

0 commit comments

Comments
 (0)