cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sea...@apache.org
Subject svn commit: r509618 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
Date Tue, 20 Feb 2007 15:58:59 GMT
Author: seanoc
Date: Tue Feb 20 07:58:58 2007
New Revision: 509618

URL: http://svn.apache.org/viewvc?view=rev&rev=509618
Log:
Change to make map returned unmodifiable.

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java?view=diff&rev=509618&r1=509617&r2=509618
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLManagerImpl.java Tue
Feb 20 07:58:58 2007
@@ -21,7 +21,9 @@
 
 import java.io.IOException;
 import java.net.URL;
+import java.util.Collections;
 import java.util.Iterator;
+import java.util.Map;
 import java.util.Properties;
 import java.util.StringTokenizer;
 import java.util.WeakHashMap;
@@ -91,8 +93,8 @@
         return factory;
     }
     
-    public WeakHashMap<Object, Definition> getDefinitions() { 
-        return definitionsMap;
+    public Map<Object, Definition> getDefinitions() { 
+        return Collections.unmodifiableMap(definitionsMap);
     }
 
     /*



Mime
View raw message