Skip to content

Commit a4a13f0

Browse files
committed
Add type hints to the parser.
1 parent 588ccf5 commit a4a13f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/bovinegenius/exploding_fish/parser.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(defn generic
3232
"Takes a URI string and parses it into scheme, scheme-relative,
3333
and fragment parts."
34-
[uri]
34+
[^String uri]
3535
(if uri
3636
(let [[_ scheme ssp fragment] (or (re-find #"^([a-zA-Z][a-zA-Z\d+.-]*):([^#]+)#?(.*)$" uri)
3737
(parse-relative uri))
@@ -42,7 +42,7 @@ and fragment parts."
4242
(defn scheme-specific
4343
"Parse the scheme specific part into authority, path, and query
4444
parts."
45-
[ssp]
45+
[^String ssp]
4646
(or
4747
(when ssp
4848
(let [[front & query] (str/split ssp #"\?")

0 commit comments

Comments
 (0)