Skip to content

Commit 04cb1ef

Browse files
committed
Fix extend-protocol for lein-cloverage
Signed-off-by: KARASZI István <ikaraszi@gmail.com>
1 parent 360dd58 commit 04cb1ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/temporal/converter/byte_string.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
(->byte-string ^ByteString [value]))
88

99
(extend-protocol ToByteString
10+
;; byte/1 - FIXME: this is not supported by lein-cloverage
11+
(Class/forName "[B")
12+
(->byte-string [value]
13+
(ByteString/copyFrom value))
14+
1015
nil
1116
(->byte-string [_]
1217
ByteString/EMPTY)
1318

14-
byte/1
15-
(->byte-string [value]
16-
(ByteString/copyFrom value))
17-
1819
String
1920
(->byte-string [value]
2021
(ByteString/copyFrom value StandardCharsets/UTF_8))

0 commit comments

Comments
 (0)