Skip to content

Commit 2962d41

Browse files
authored
Merge pull request #7 from sogaiu/reflection-warnings
Address reflection warnings
2 parents 702c120 + 67227e3 commit 2962d41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lambdaisland/deep_diff/diff.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
(defn- val-type [val]
101101
(let [t (type val)]
102102
(if (class? t)
103-
(symbol (.getName t))
103+
(symbol (.getName ^Class t))
104104
t)))
105105

106106
(defn- diff-map [exp act]
@@ -143,7 +143,7 @@
143143
(extend Object
144144
Diff
145145
{:diff-similar (fn [exp act]
146-
(if (.isArray (.getClass exp))
146+
(if (.isArray (.getClass ^Object exp))
147147
(diff-seq exp act)
148148
(diff-atom exp act)))})
149149

src/lambdaisland/deep_diff/printer.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
(puget/format-doc printer v)]))))})
7676

7777
(defn- print-handler-resolver [extra-handlers]
78-
(fn [klz]
78+
(fn [^Class klz]
7979
(and klz (get (merge @#'print-handlers extra-handlers)
8080
(symbol (.getName klz))))))
8181

0 commit comments

Comments
 (0)