Skip to content

Commit 2ed8d4e

Browse files
committed
Ensure that we always create an array of type MBeanAttributeInfo.
1 parent 69ebdef commit 2ed8d4e

File tree

1 file changed

+2
-1
lines changed
  • src/main/clojure/clojure/java

1 file changed

+2
-1
lines changed

src/main/clojure/clojure/java/jmx.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@
174174
(defn- map->attribute-infos
175175
"Construct an MBeanAttributeInfo[] from a Clojure associative."
176176
[attr-map]
177-
(into-array (map (fn [[attr-name value]] (build-attribute-info attr-name value))
177+
(into-array MBeanAttributeInfo
178+
(map (fn [[attr-name value]] (build-attribute-info attr-name value))
178179
attr-map)))
179180

180181
(defmacro with-connection

0 commit comments

Comments
 (0)