From d49dc74bd374634bd12a98e023bca783f183646c Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 13 Apr 2020 11:10:31 +0200 Subject: [PATCH] [#50] fix reflection warnings --- src/flatland/ordered/map.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/flatland/ordered/map.clj b/src/flatland/ordered/map.clj index 29aec8f..021ab50 100644 --- a/src/flatland/ordered/map.clj +++ b/src/flatland/ordered/map.clj @@ -21,6 +21,8 @@ ) (java.util Map Map$Entry))) +(set! *warn-on-reflection* true) + ;; We could use compile-if technique here, but hoping to avoid ;; an AOT issue using this way instead. (def hasheq-ordered-map @@ -110,13 +112,13 @@ Map (size [this] - (.size backing-map)) + (.size ^Map backing-map)) (containsKey [this k] (.containsKey backing-map k)) (isEmpty [this] - (.isEmpty backing-map)) + (.isEmpty ^Map backing-map)) (keySet [this] - (.keySet backing-map)) + (.keySet ^Map backing-map)) (get [this k] (.valAt this k)) (containsValue [this v]