don't convert objects to maps when converting from java to clojure

This commit is contained in:
Gered 2014-03-05 18:31:19 -05:00
parent dac1f31616
commit 0b773a9423

View file

@ -46,8 +46,11 @@
java.lang.Object
(to-clojure [x]
(-> x
(bean) ; TODO: this is definitely not the fastest method ...
x
; on second thought, it's probably almost always a better idea to pass the unaltered object to the function
; and let the actual function itself decide if it wants the object as a map or not...
#_(-> x
(bean)
(dissoc :class)))
nil