We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276fbfd commit 51c6d7aCopy full SHA for 51c6d7a
src/clj/clojure/data.clj
@@ -12,6 +12,8 @@
12
clojure.data
13
(:require [clojure.set :as set]))
14
15
+(set! *warn-on-reflection* true)
16
+
17
(declare diff)
18
19
(defn- atom-diff
@@ -78,9 +80,11 @@
78
80
79
81
(extend Object
82
Diff
- {:diff-similar (fn [a b] ((if (.. a getClass isArray) diff-sequential atom-diff) a b))}
83
+ {:diff-similar (fn [^Object a b]
84
+ ((if (.. a getClass isArray) diff-sequential atom-diff) a b))}
85
EqualityPartition
- {:equality-partition (fn [x] (if (.. x getClass isArray) :sequential :atom))})
86
+ {:equality-partition (fn [^Object x]
87
+ (if (.. x getClass isArray) :sequential :atom))})
88
89
(extend-protocol EqualityPartition
90
nil
0 commit comments