From 521e08b5478bd7962a7846635f60e01e444cf5f7 Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Wed, 29 Aug 2018 14:18:03 -0400 Subject: [PATCH] Remove reflection warnings from min/max rfs --- src/net/cgrand/xforms/rfs.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/cgrand/xforms/rfs.cljc b/src/net/cgrand/xforms/rfs.cljc index 9db799c..a055c65 100644 --- a/src/net/cgrand/xforms/rfs.cljc +++ b/src/net/cgrand/xforms/rfs.cljc @@ -28,7 +28,7 @@ :else 0)))) (defn minimum - ([comparator] + ([#?(:clj ^java.util.Comparator comparator :cljs comparator)] (fn ([] nil) ([x] x) @@ -46,7 +46,7 @@ ([a b] (if (or (#?(:clj identical? :cljs keyword-identical?) ::+∞ a) (pos? (#?(:clj .compare :cljs cmp) comparator a b))) b a))))) (defn maximum - ([comparator] + ([#?(:clj ^java.util.Comparator comparator :cljs comparator)] (fn ([] nil) ([x] x)