Permalink
Browse files
Avoid reflection in Exception ctor.
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+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