abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r441225 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Date Thu, 07 Sep 2006 20:57:21 GMT
Author: jmsnell
Date: Thu Sep  7 13:57:21 2006
New Revision: 441225

URL: http://svn.apache.org/viewvc?view=rev&rev=441225
Log:
Silly goof

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java?view=diff&rev=441225&r1=441224&r2=441225
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Thu Sep  7 13:57:21 2006
@@ -42,11 +42,9 @@
   
   private Map<String, String> initDefaultNamespaces() {
     Map<String,String> namespaces = new HashMap<String,String>();
-    if (namespaces == null)  {
-      namespaces = new HashMap<String,String>();
-      namespaces.put("a", Constants.ATOM_NS);
-      namespaces.put("app", Constants.APP_NS);
-    }
+    namespaces = new HashMap<String,String>();
+    namespaces.put("a", Constants.ATOM_NS);
+    namespaces.put("app", Constants.APP_NS);
     return namespaces;
   }
 



Mime
View raw message