remove reflection warnings

This commit is contained in:
Sean Corfield 2022-09-11 12:00:20 -07:00
parent 77248fc2eb
commit 0f3b92a1ee

View file

@ -512,15 +512,15 @@
clojure.lang.Associative clojure.lang.Associative
(containsKey [this k] (containsKey [this k]
(try (try
(.getObject rs (name-fn k)) (.getObject rs ^String (name-fn k))
true true
(catch SQLException _ (catch SQLException _
false))) false)))
(entryAt [this k] (entryAt [this k]
(try (try
(clojure.lang.MapEntry. k (read-column-by-label (clojure.lang.MapEntry. k (read-column-by-label
(.getObject rs (name-fn k)) (.getObject rs ^String (name-fn k))
(name-fn k))) ^String (name-fn k)))
(catch SQLException _))) (catch SQLException _)))
clojure.lang.Counted clojure.lang.Counted
@ -543,14 +543,14 @@
(if (number? k) (if (number? k)
(let [^Integer i (inc k)] (let [^Integer i (inc k)]
(read-column-by-index (.getObject rs i) (:rsmeta @builder) i)) (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 _))) (catch SQLException _)))
(valAt [this k not-found] (valAt [this k not-found]
(try (try
(if (number? k) (if (number? k)
(let [^Integer i (inc k)] (let [^Integer i (inc k)]
(read-column-by-index (.getObject rs i) (:rsmeta @builder) i)) (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 _ (catch SQLException _
not-found))) not-found)))