From c375d4481973dde6111c879e0543df8637da71af Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Thu, 14 May 2009 17:55:18 +0000 Subject: json/write.clj: added type hints to avoid reflection --- src/clojure/contrib/json/write.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clojure') 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)] -- cgit v1.2.3-70-g09d2