Skip to content

Commit

Permalink
Add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
evg-tso committed Aug 24, 2023
1 parent 9909eaa commit 84c494e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/clojure/aerospike_clj/bins.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
(:import (clojure.lang IPersistentMap)
(com.aerospike.client Bin)))

(set! *warn-on-reflection* true)

(def ^:private ^:const MAX_BIN_NAME_LENGTH 14)

(defn- create-bin ^Bin [^String bin-name bin-value]
Expand All @@ -18,7 +20,7 @@
(defn- map->multiple-bins ^"[Lcom.aerospike.client.Bin;" [^IPersistentMap m]
(let [size (.count m)
iterator (.iterator m)
res (make-array Bin size)]
res ^"[Lcom.aerospike.client.Bin;" (make-array Bin size)]
(loop [i 0]
(when (and (< i size)
(.hasNext iterator))
Expand Down

0 comments on commit 84c494e

Please sign in to comment.