Permalink
Browse files

Avoid reflection in Exception ctor.

  • Loading branch information...
1 parent 36a7954 commit 404f6a1a3d20628db3c029a579ab790cb2f1d4dd @mmcgrana committed Oct 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ring-servlet/src/ring/util/servlet.clj
@@ -92,7 +92,7 @@
(nil? body)
nil
:else
- (throw (Exception. (format "Unrecognized body: %s" body)))))
+ (throw (Exception. ^String (format "Unrecognized body: %s" body)))))
(defn update-servlet-response
"Update the HttpServletResponse using a response map."

0 comments on commit 404f6a1

Please sign in to comment.