jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r397931 - /jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java
Date Fri, 28 Apr 2006 15:49:07 GMT
Author: angela
Date: Fri Apr 28 08:49:05 2006
New Revision: 397931

URL: http://svn.apache.org/viewcvs?rev=397931&view=rev
Log:
use prefix/uri of EMPTY_NAMESPACE constant instead of ""

Modified:
    jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java

Modified: jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java
URL: http://svn.apache.org/viewcvs/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java?rev=397931&r1=397930&r2=397931&view=diff
==============================================================================
--- jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java
(original)
+++ jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/Namespace.java
Fri Apr 28 08:49:05 2006
@@ -65,10 +65,10 @@
 
     public static Namespace getNamespace(String prefix, String uri) {
         if (prefix == null) {
-            prefix = "";
+            prefix = EMPTY_NAMESPACE.getPrefix();
         }
         if (uri == null) {
-            uri = "";
+            uri = EMPTY_NAMESPACE.getURI();
         }
         return new Namespace(prefix, uri);
     }



Mime
View raw message