We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cccbbb commit 11da1b4Copy full SHA for 11da1b4
src/main/clojure/clojure/data/xml/jvm/name.clj
@@ -14,6 +14,8 @@
14
(javax.xml.namespace NamespaceContext QName)
15
(java.net URLEncoder URLDecoder)))
16
17
+(set! *warn-on-reflection* true)
18
+
19
(extend-protocol AsQName
20
QName
21
(qname-local [qname] (.getLocalPart qname))
@@ -32,8 +34,8 @@
32
34
(qname-uri [s]
33
35
(.getNamespaceURI (parse-qname s))))
36
-(definline decode-uri [ns]
37
+(definline decode-uri [^String ns]
38
`(URLDecoder/decode ~ns "UTF-8"))
39
-(definline encode-uri [uri]
40
+(definline encode-uri [^String uri]
41
`(URLEncoder/encode ~uri "UTF-8"))
0 commit comments