Skip to content

Commit

Permalink
Hotfix: missing thaw routines for deprecated type ids: 6, 80
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Jul 26, 2016
1 parent 9bac40e commit c1d48c7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/taoensso/nippy.clj
Expand Up @@ -1196,16 +1196,18 @@
id-uuid (UUID. (.readLong in) (.readLong in))

;; Deprecated ------------------------------------------------------
id-boolean-depr1 (.readBoolean in)
id-sorted-map-depr1 (read-kvs-depr1 (sorted-map) in)
id-map-depr2 (read-kvs-depr1 {} in)
id-reader-depr1 (read-edn (.readUTF in))
id-reader-depr2 (read-edn (read-utf8 in (.readInt in)))
id-str-depr1 (.readUTF in)
id-kw-depr1 (keyword (.readUTF in))
id-map-depr1 (apply hash-map
(enc/repeatedly-into [] (* 2 (.readInt in))
(fn [] (thaw-from-in! in))))
id-boolean-depr1 (.readBoolean in)
id-sorted-map-depr1 (read-kvs-depr1 (sorted-map) in)
id-map-depr2 (read-kvs-depr1 {} in)
id-reader-depr1 (read-edn (.readUTF in))
id-reader-depr2 (read-edn (read-utf8 in (.readInt in)))
id-str-depr1 (.readUTF in)
id-kw-depr1 (keyword (.readUTF in))
id-map-depr1 (apply hash-map
(enc/repeatedly-into [] (* 2 (.readInt in))
(fn [] (thaw-from-in! in))))
id-serializable-depr1 (read-serializable in (read-utf8 in (read-lg-count in)))
id-record-depr1 (read-record in (read-utf8 in (read-lg-count in)))
;; -----------------------------------------------------------------

id-prefixed-custom (read-custom! in :prefixed (.readShort in))
Expand Down

0 comments on commit c1d48c7

Please sign in to comment.