You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jp...@apache.org on 2013/02/15 05:11:24 UTC

svn commit: r1446442 - /cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java

Author: jpell
Date: Fri Feb 15 04:11:24 2013
New Revision: 1446442

URL: http://svn.apache.org/r1446442
Log:
CXF-4813 a change to fix an issue with random policy references in AssersionInfoMap that was first seen after r1445377.  Patch provided by dkulp

Modified:
    cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java

Modified: cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java?rev=1446442&r1=1446441&r2=1446442&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java (original)
+++ cxf/branches/2.7.x-fixes/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyRegistryImpl.java Fri Feb 15 04:11:24 2013
@@ -37,7 +37,9 @@ public class PolicyRegistryImpl implemen
     }
 
     public void register(String key, Policy policy) {
-        reg.put(key, policy);        
+        if (!reg.containsKey(key)) {
+            reg.put(key, policy);
+        }
     }
 
     public void remove(String key) {