From c5c548793fe77c72b96effebc3a594e478fa9c30 Mon Sep 17 00:00:00 2001 From: Ivar Refsdal Date: Mon, 2 Dec 2019 13:47:28 +0100 Subject: [PATCH] Add type hints for GraalVM --- src/clj_http/lite/util.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clj_http/lite/util.clj b/src/clj_http/lite/util.clj index a75aa5b3..c05eedc8 100644 --- a/src/clj_http/lite/util.clj +++ b/src/clj_http/lite/util.clj @@ -19,12 +19,13 @@ (defn url-decode "Returns the form-url-decoded version of the given string, using either a specified encoding or UTF-8 by default." - [encoded & [encoding]] - (URLDecoder/decode encoded (or encoding "UTF-8"))) + [^String encoded & [encoding]] + (let [^String encoding (or encoding "UTF-8")] + (URLDecoder/decode encoded encoding))) (defn url-encode "Returns an UTF-8 URL encoded version of the given string." - [unencoded] + [^String unencoded] (URLEncoder/encode unencoded "UTF-8")) (defmacro base64-encode