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

Elias Ross genman at noderunner.net
Mon Nov 20 13:04:08 EST 2006


  User: genman  
  Date: 06/11/20 13:04:08

  Modified:    src/org/jboss/cache/loader  JDBCCacheLoader.java
  Log:
  JBCACHE-867 -- Node.put((Map)null) is allowed, remove MapCopy where map is modified
  
  Revision  Changes    Path
  1.24      +2 -3      JBossCache/src/org/jboss/cache/loader/JDBCCacheLoader.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JDBCCacheLoader.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/JDBCCacheLoader.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- JDBCCacheLoader.java	20 Nov 2006 07:33:14 -0000	1.23
  +++ JDBCCacheLoader.java	20 Nov 2006 18:04:08 -0000	1.24
  @@ -11,7 +11,6 @@
   import org.jboss.cache.Fqn;
   import org.jboss.cache.Modification;
   import org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig;
  -import org.jboss.cache.util.MapCopy;
   
   import javax.naming.InitialContext;
   import javax.naming.NamingException;
  @@ -80,7 +79,7 @@
    *
    * @author <a href="mailto:alex at jboss.org">Alexey Loubyansky</a>
    * @author <a href="mailto:hmesha at novell.com">Hany Mesha </a>
  - * @version <tt>$Revision: 1.23 $</tt>
  + * @version <tt>$Revision: 1.24 $</tt>
    */
   public class JDBCCacheLoader extends AbstractCacheLoader
   {
  @@ -625,7 +624,7 @@
      public void put(Fqn name, Map attributes, boolean override) throws Exception
      {
         // JBCACHE-769 -- make a defensive copy
  -      Map attrs = (attributes == null ? null : new MapCopy(attributes));
  +      Map attrs = (attributes == null ? null : new HashMap(attributes));
   
         Map oldNode = loadNode(name);
         if (oldNode != null)
  
  
  



More information about the jboss-cvs-commits mailing list