Skip to content

Commit

Permalink
Check freezable? against atom type
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Feb 16, 2014
1 parent 9ec458f commit 107cc53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/taoensso/nippy/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,6 @@
(freezable? (.getBytes "foo"))
(freezable? (java.util.Date.) {:allow-clojure-reader? true})
(freezable? (Exception. "_") {:allow-clojure-reader? true})
(freezable? (Exception. "_") {:allow-java-serializable? true}))
(freezable? (Exception. "_") {:allow-java-serializable? true})
(freezable? (atom {}) {:allow-clojure-reader? true
:allow-java-serializable? true}))

0 comments on commit 107cc53

Please sign in to comment.