diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2009-05-14 17:55:18 +0000 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2009-05-14 17:55:18 +0000 |
commit | c375d4481973dde6111c879e0543df8637da71af (patch) | |
tree | 58973960fab7c343c2c3dacb593f12a2930dae34 /src/clojure | |
parent | 188e6b091cd773f23c0b601ead60e986e16f9eab (diff) |
json/write.clj: added type hints to avoid reflection
Diffstat (limited to 'src/clojure')
-rw-r--r-- | src/clojure/contrib/json/write.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure/contrib/json/write.clj b/src/clojure/contrib/json/write.clj index d197f5cb..c7b985b7 100644 --- a/src/clojure/contrib/json/write.clj +++ b/src/clojure/contrib/json/write.clj @@ -112,7 +112,7 @@ Within strings, all non-ASCII characters are hexadecimal escaped. (recur nxt))))) (print \})) -(defmethod print-json java.lang.CharSequence [s] +(defmethod print-json java.lang.CharSequence [#^CharSequence s] (print \") (dotimes [i (count s)] (let [cp (Character/codePointAt s i)] |