Skip to content

Commit

Permalink
Add hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilles Philippart committed Jun 10, 2022
1 parent f9dc7cd commit 3bee388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jackdaw/serdes/avro.clj
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
{:path path, :clj-data clj-map}
(AvroTypeException. "Type Error"))))

(let [record-builder (GenericRecordBuilder. schema)]
(let [record-builder (GenericRecordBuilder. ^Schema schema)]
(try
(doseq [[k v] clj-map]
(let [new-k (mangle (name k))
Expand Down
2 changes: 1 addition & 1 deletion src/jackdaw/test/fixtures.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

(defn- new-topic
[t]
(doto (NewTopic. (:topic-name t)
(doto (NewTopic. ^String (:topic-name t)
(int (:partition-count t))
(short (:replication-factor t)))
(.configs (:config t))))
Expand Down

0 comments on commit 3bee388

Please sign in to comment.