Skip to content

Commit

Permalink
0.1.0-alpha2 fix reflection error with native-image
Browse files Browse the repository at this point in the history
  • Loading branch information
wavejumper committed Jul 23, 2020
1 parent fb4320f commit 4ed4b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject wavejumper/boonmee "0.1.0-alpha1"
(defproject wavejumper/boonmee "0.1.0-alpha2"
:description "cljs tooling"
:url "https://github.com/wavejumper/boonmee"

Expand Down
2 changes: 1 addition & 1 deletion src/boonmee/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
(-line-handler r# f#)))

(defn sha256
[string]
[^String string]
(let [digest (.digest (MessageDigest/getInstance "SHA-256") (.getBytes string "UTF-8"))]
(apply str (map (partial format "%02x") digest))))

Expand Down

0 comments on commit 4ed4b28

Please sign in to comment.