Skip to content

Commit 8b22595

Browse files
committed
Remove reflection warnings
1 parent 5433967 commit 8b22595

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lambdaisland/deep_diff/printer.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@
3636
[:align (interpose [:span (:map-delimiter this) :line] entries)]
3737
(color/document this :delimiter "}")]))
3838

39-
(def ^:private thread-local-utc-date-format
39+
(def ^:private ^ThreadLocal thread-local-utc-date-format
4040
(proxy [ThreadLocal] []
4141
(initialValue []
4242
(doto (SimpleDateFormat. "yyyy-MM-dd'T'HH:mm:ss.SSS-00:00")
4343
(.setTimeZone (TimeZone/getTimeZone "GMT"))))))
4444

4545
(def ^:private print-date
46-
(puget/tagged-handler 'inst
47-
#(.format (.get thread-local-utc-date-format) %)))
46+
(puget/tagged-handler
47+
'inst
48+
#(.format ^SimpleDateFormat (.get thread-local-utc-date-format) %)))
4849

4950
(def ^:private print-handlers
5051
{'lambdaisland.deep_diff.diff.Deletion

0 commit comments

Comments
 (0)