Skip to content

Commit

Permalink
Ensure that we always create an array of type MBeanAttributeInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmbailey committed Jan 31, 2013
1 parent 69ebdef commit 2ed8d4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/clojure/clojure/java/jmx.clj
Expand Up @@ -174,7 +174,8 @@
(defn- map->attribute-infos (defn- map->attribute-infos
"Construct an MBeanAttributeInfo[] from a Clojure associative." "Construct an MBeanAttributeInfo[] from a Clojure associative."
[attr-map] [attr-map]
(into-array (map (fn [[attr-name value]] (build-attribute-info attr-name value)) (into-array MBeanAttributeInfo
(map (fn [[attr-name value]] (build-attribute-info attr-name value))
attr-map))) attr-map)))


(defmacro with-connection (defmacro with-connection
Expand Down

0 comments on commit 2ed8d4e

Please sign in to comment.