[jboss-cvs] JBossCache/src/org/jboss/cache/notifications ...

Manik Surtani msurtani at jboss.com
Wed Jan 3 11:43:52 EST 2007


  User: msurtani
  Date: 07/01/03 11:43:52

  Modified:    src/org/jboss/cache/notifications  Notifier.java
  Log:
  Use MapCopy instead of unmodifiable map
  
  Revision  Changes    Path
  1.15      +2 -3      JBossCache/src/org/jboss/cache/notifications/Notifier.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Notifier.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/notifications/Notifier.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- Notifier.java	3 Jan 2007 15:33:08 -0000	1.14
  +++ Notifier.java	3 Jan 2007 16:43:52 -0000	1.15
  @@ -14,11 +14,11 @@
   import org.jboss.cache.Fqn;
   import org.jboss.cache.InvocationContext;
   import org.jboss.cache.marshall.MethodCall;
  +import org.jboss.cache.util.MapCopy;
   import org.jgroups.View;
   
   import java.lang.reflect.Method;
   import java.util.Collections;
  -import java.util.HashMap;
   import java.util.List;
   import java.util.Map;
   import java.util.Set;
  @@ -529,8 +529,7 @@
      private Map copy(Map<Object, Object> data)
      {
         if (data == null) return null;
  -      if (data.isEmpty()) return Collections.emptyMap();
  -      return Collections.unmodifiableMap(new HashMap<Object, Object>(data));
  +      return new MapCopy<Object, Object>(data);
      }
   
      private void restoreInvocationContext()
  
  
  



More information about the jboss-cvs-commits mailing list