From 0f3b92a1eeff940a02d3450aa6f2f1bf088a988f Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 11 Sep 2022 12:00:20 -0700 Subject: [PATCH] remove reflection warnings --- src/next/jdbc/result_set.clj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/next/jdbc/result_set.clj b/src/next/jdbc/result_set.clj index 36bab87..dda376a 100644 --- a/src/next/jdbc/result_set.clj +++ b/src/next/jdbc/result_set.clj @@ -512,15 +512,15 @@ clojure.lang.Associative (containsKey [this k] (try - (.getObject rs (name-fn k)) + (.getObject rs ^String (name-fn k)) true (catch SQLException _ false))) (entryAt [this k] (try (clojure.lang.MapEntry. k (read-column-by-label - (.getObject rs (name-fn k)) - (name-fn k))) + (.getObject rs ^String (name-fn k)) + ^String (name-fn k))) (catch SQLException _))) clojure.lang.Counted @@ -543,14 +543,14 @@ (if (number? k) (let [^Integer i (inc k)] (read-column-by-index (.getObject rs i) (:rsmeta @builder) i)) - (read-column-by-label (.getObject rs (name-fn k)) (name-fn k))) + (read-column-by-label (.getObject rs ^String (name-fn k)) ^String (name-fn k))) (catch SQLException _))) (valAt [this k not-found] (try (if (number? k) (let [^Integer i (inc k)] (read-column-by-index (.getObject rs i) (:rsmeta @builder) i)) - (read-column-by-label (.getObject rs (name-fn k)) (name-fn k))) + (read-column-by-label (.getObject rs ^String (name-fn k)) ^String (name-fn k))) (catch SQLException _ not-found)))