Skip to content

Commit

Permalink
Fix array reflection warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nilern committed Mar 19, 2021
1 parent cabbc57 commit d4d0a54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cheshire/parse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

(extend-type (Class/forName "[B")
ToJsonParser
(-json-parser [self ^JsonFactory factory] (.createParser factory self)))
(-json-parser [self ^JsonFactory factory] (.createParser factory ^"[B" self)))

(extend-type (Class/forName "[C")
ToJsonParser
(-json-parser [self ^JsonFactory factory] (.createParser factory self)))
(-json-parser [self ^JsonFactory factory] (.createParser factory ^"[C" self)))

(extend-parser ToJsonParser -json-parser JsonFactory
DataInput
Expand All @@ -40,7 +40,7 @@

(extend-type (Class/forName "[B")
ToCBORParser
(-cbor-parser [self ^CBORFactory factory] (.createParser factory self)))
(-cbor-parser [self ^CBORFactory factory] (.createParser factory ^"[B" self)))

(extend-parser ToCBORParser -cbor-parser CBORFactory
File
Expand All @@ -49,7 +49,7 @@

(extend-type (Class/forName "[B")
ToSmileParser
(-smile-parser [self ^SmileFactory factory] (.createParser factory self)))
(-smile-parser [self ^SmileFactory factory] (.createParser factory ^"[B" self)))

(extend-parser ToSmileParser -smile-parser SmileFactory
File
Expand Down

0 comments on commit d4d0a54

Please sign in to comment.