diff --git a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestOptions.java b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestOptions.java index 7df4dd4f15..129cd2498c 100644 --- a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestOptions.java +++ b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestOptions.java @@ -110,7 +110,7 @@ public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory() { /** * How this request should handle warnings. If null (the default) then - * this request will default to the behavior dictacted by + * this request will default to the behavior dictated by * {@link Rest5ClientBuilder#setStrictDeprecationMode}. *

* This can be set to {@link WarningsHandler#PERMISSIVE} if the client @@ -273,7 +273,7 @@ public Builder setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFact /** * How this request should handle warnings. If null (the default) then - * this request will default to the behavior dictacted by + * this request will default to the behavior dictated by * {@link Rest5ClientBuilder#setStrictDeprecationMode}. *

* This can be set to {@link WarningsHandler#PERMISSIVE} if the client diff --git a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5Client.java b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5Client.java index be2ec04e3c..859b66f549 100644 --- a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5Client.java +++ b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5Client.java @@ -452,7 +452,7 @@ public void cancelled() { listener.onDefinitiveFailure(Cancellable.newCancellationException()); } }); - // needed to be able to cancel asnyc requests + // needed to be able to cancel async requests if (futureRef instanceof org.apache.hc.core5.concurrent.Cancellable) { request.httpRequest.setDependency((org.apache.hc.core5.concurrent.Cancellable) futureRef); } diff --git a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/Sniffer.java b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/Sniffer.java index 7ed0bcc2c3..76afb3a4f8 100644 --- a/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/Sniffer.java +++ b/rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/Sniffer.java @@ -129,7 +129,7 @@ public void run() { /* * Skipped or already started tasks do nothing. In most cases tasks will be cancelled and not run, but we want to protect for * cases where future#cancel returns true yet the task runs. We want to make sure that such tasks do nothing otherwise they will - * schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" whish is undesirable. + * schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" which is undesirable. */ if (taskState.compareAndSet(TaskState.WAITING, TaskState.STARTED) == false) { return;