You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2006/06/16 20:42:40 UTC

svn commit: r414879 - /xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java

Author: raul
Date: Fri Jun 16 11:42:39 2006
New Revision: 414879

URL: http://svn.apache.org/viewvc?rev=414879&view=rev
Log:
Not create everytime the initial hashtable just clone it.

Modified:
    xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java

Modified: xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java?rev=414879&r1=414878&r2=414879&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/c14n/implementations/NameSpaceSymbTable.java Fri Jun 16 11:42:39 2006
@@ -43,6 +43,12 @@
 	List level;
     boolean cloned=true;	
 	static final String XMLNS="xmlns";
+	final static SymbMap initialMap=new SymbMap();
+	static {
+		NameSpaceSymbEntry ne=new NameSpaceSymbEntry("",null,true);
+		ne.lastrendered="";		
+		initialMap.put(XMLNS,ne);
+	}
     /**
      * Default constractor
      **/		
@@ -50,9 +56,7 @@
     	symb = new SymbMap();
     	level = new ArrayList(10);
     	//Insert the default binding for xmlns.    	
-    	NameSpaceSymbEntry ne=new NameSpaceSymbEntry("",null,true);
-		ne.lastrendered="";		
-    	symb.put(XMLNS,ne);    
+    	symb=(SymbMap) initialMap.clone();
     }
     
     /**