Revision: edeb28a23203
Author:   lasithwaruna <[email protected]>
Date:     Thu Apr 25 06:26:50 2013
Log:      fixed  jolokia throwing an error for unmodifiable map entries

http://code.google.com/p/sctp/source/detail?r=edeb28a23203

Modified:
 /sctp-impl/src/main/java/org/mobicents/protocols/sctp/ManagementImpl.java

=======================================
--- /sctp-impl/src/main/java/org/mobicents/protocols/sctp/ManagementImpl.java Tue Dec 11 08:14:15 2012 +++ /sctp-impl/src/main/java/org/mobicents/protocols/sctp/ManagementImpl.java Thu Apr 25 06:26:50 2013
@@ -30,6 +30,7 @@
 import java.nio.channels.Selector;
 import java.nio.channels.spi.SelectorProvider;
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ExecutorService;
@@ -821,7 +822,9 @@
         * @return the associations
         */
        public Map<String, Association> getAssociations() {
-               return associations.unmodifiable();
+               Map<String, Association> routeTmp = new HashMap<String, 
Association>();
+               routeTmp.putAll(this.associations);
+               return routeTmp;
        }

        public void startAssociation(String assocName) throws Exception {

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to