Skip to content

Commit 3414ffd

Browse files
authored
Update rest-client version (#688)
1 parent 5cd9340 commit 3414ffd

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

java-client-serverless/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ publishing {
191191
}
192192

193193
dependencies {
194-
val elasticsearchVersion = "8.9.0"
194+
val elasticsearchVersion = "8.10.0"
195195
val jacksonVersion = "2.13.3"
196196
val openTelemetryVersion = "1.29.0"
197197

java-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ publishing {
187187
dependencies {
188188
// Compile and test with the last 7.x version to make sure transition scenarios where
189189
// the Java API client coexists with a 7.x HLRC work fine
190-
val elasticsearchVersion = "7.17.7"
190+
val elasticsearchVersion = "8.10.0"
191191
val jacksonVersion = "2.13.3"
192192
val openTelemetryVersion = "1.29.0"
193193

java-client/src/main/java/co/elastic/clients/transport/rest_client/SafeResponseConsumer.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@ public class SafeResponseConsumer<T> implements HttpAsyncResponseConsumer<T> {
4747
/**
4848
* Same as {@code RequestOptions.DEFAULT} with a safe consumer factory
4949
*/
50-
public static final RequestOptions DEFAULT_REQUEST_OPTIONS;
51-
52-
static {
53-
RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
54-
builder.setHttpAsyncResponseConsumerFactory(DEFAULT_FACTORY);
55-
DEFAULT_REQUEST_OPTIONS = builder.build();
56-
}
50+
public static final RequestOptions DEFAULT_REQUEST_OPTIONS = RequestOptions.DEFAULT
51+
.toBuilder()
52+
.setHttpAsyncResponseConsumerFactory(DEFAULT_FACTORY)
53+
.build();
5754

5855
public SafeResponseConsumer(HttpAsyncResponseConsumer<T> delegate) {
5956
this.delegate = delegate;

0 commit comments

Comments
 (0)