Permalink
Please sign in to comment.
Showing
with
15 additions
and 4 deletions.
2
ring-core/src/ring/middleware/params.clj
9
ring-core/src/ring/util/test.clj
| @@ -1,7 +1,10 @@ | ||
| (ns ring.util.test | ||
| "Utilities for testing Ring components." | ||
| - (:import (java.io ByteArrayInputStream))) | ||
| + (:import java.io.ByteArrayInputStream)) | ||
| -(defn string-input-stream [^String s] | ||
| +(defn string-input-stream | ||
| "Returns a ByteArrayInputStream for the given String." | ||
| - (ByteArrayInputStream. (.getBytes s))) | ||
| + ([^String s] | ||
| + (ByteArrayInputStream. (.getBytes s))) | ||
| + ([^String s encoding] | ||
| + (ByteArrayInputStream. (.getBytes s encoding)))) |
8
ring-core/test/ring/middleware/test/params.clj
0 comments on commit
8cd85cf