From d639fab9cfa3c79103f6053b49556ba6b4e3eccc Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sat, 15 Oct 2011 04:17:59 +0400 Subject: [PATCH] Two more reflection warnings --- test/monger/test/lib_integration.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/monger/test/lib_integration.clj b/test/monger/test/lib_integration.clj index 1d82401..0f5a3d5 100644 --- a/test/monger/test/lib_integration.clj +++ b/test/monger/test/lib_integration.clj @@ -3,7 +3,7 @@ [monger.json] [monger.joda-time] [monger.conversion]) - (:import [org.joda.time ReadableInstant] + (:import [org.joda.time DateTime ReadableInstant] [org.joda.time.format ISODateTimeFormat] [java.io StringWriter PrintWriter]) (:require [clojure.data.json :as json] @@ -21,7 +21,7 @@ (deftest conversion-of-java-util-date-to-joda-datetime - (let [input (.toDate (t/date-time 2011 10 13 23 55 0)) + (let [input (.toDate ^DateTime (t/date-time 2011 10 13 23 55 0)) output (from-db-object input false)] (is (instance? org.joda.time.DateTime output)) - (is (= input (.toDate output))))) + (is (= input (.toDate ^DateTime output)))))