From a2f7ac956ef2785bb4980872e9dbdc7ef61bdd10 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Mon, 29 Apr 2019 15:29:57 +0200 Subject: Make dependencies provided --- hosted-api/pom.xml | 2 ++ .../src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'hosted-api') diff --git a/hosted-api/pom.xml b/hosted-api/pom.xml index 3ca8c3c5fd5..597cd57f8dd 100644 --- a/hosted-api/pom.xml +++ b/hosted-api/pom.xml @@ -17,11 +17,13 @@ com.yahoo.vespa config-provisioning ${project.version} + provided com.yahoo.vespa vespajlib ${project.version} + provided diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java b/hosted-api/src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java index 6b2f5596fd6..0dde6fd3bde 100644 --- a/hosted-api/src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java +++ b/hosted-api/src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java @@ -39,8 +39,8 @@ public class MultiPartStreamer { } /** Adds the given data as a named part in this, using the {@code "text/plain"} content type. */ - public MultiPartStreamer addText(String name, String json) { - return addData(name, "text/plain", json); + public MultiPartStreamer addText(String name, String text) { + return addData(name, "text/plain", text); } /** Adds the given data as a named part in this, using the {@code "application/json"} content type. */ @@ -57,9 +57,9 @@ public class MultiPartStreamer { } /** Adds the given data as a named part in this, using the {@code "application/octet-stream" content type}. */ - public MultiPartStreamer addBytes(String name, byte[] data) { + public MultiPartStreamer addBytes(String name, byte[] bytes) { streams.add(() -> separator(name, "application/octet-stream")); - streams.add(() -> new ByteArrayInputStream(data)); + streams.add(() -> new ByteArrayInputStream(bytes)); return this; } -- cgit v1.2.3