Skip to content

Commit

Permalink
Update Java interop for Clojure 12
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed Sep 23, 2024
1 parent c1b88f8 commit b1b112c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beat_link_trigger/help.clj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"Produces a compact summary of the IPv4 addresses (if any) attached to
a network interface."
[^java.net.NetworkInterface interface]
(let [candidates (filter #(.getBroadcast ^java.net.InterfaceAddress %) (.getInterfaceAddresses interface))]
(let [candidates (filter java.net.InterfaceAddress/.getBroadcast (.getInterfaceAddresses interface))]
(if (seq candidates)
(str/join ", " (map (fn [^java.net.InterfaceAddress addr]
(str (.getHostAddress (.getAddress addr)) "/" (.getNetworkPrefixLength addr)))
Expand Down

0 comments on commit b1b112c

Please sign in to comment.