summaryrefslogtreecommitdiffstats
path: root/http-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'http-client/src')
-rw-r--r--http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java1
-rw-r--r--http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
index ed3fee101ed..08ac3b54903 100644
--- a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
+++ b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
@@ -18,6 +18,7 @@ import org.apache.hc.core5.http.io.entity.EntityUtils;
import org.apache.hc.core5.http.io.entity.HttpEntities;
import org.apache.hc.core5.http.io.support.ClassicRequestBuilder;
import org.apache.hc.core5.util.Timeout;
+import sun.misc.Unsafe;
import java.io.IOException;
import java.io.UncheckedIOException;
diff --git a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
index ea8328ed793..2e60260e4c0 100644
--- a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
+++ b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
@@ -80,7 +80,7 @@ public interface HttpClient extends Closeable {
/** Sets the request body. */
default RequestBuilder body(HttpEntity entity) {
if (entity.isRepeatable()) return body(() -> entity);
- throw new IllegalArgumentException("entitiy must be repeatable, or a supplier must be used");
+ throw new IllegalArgumentException("entity must be repeatable, or a supplier must be used");
}
/** Sets the request body. */