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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jun 6 13:47:49 EDT 2007


  User: vblagojevic
  Date: 07/06/06 13:47:49

  Modified:    src/org/jboss/cache  CacheImpl.java
  Log:
  small optimization of JGroups call
  
  Revision  Changes    Path
  1.83      +3 -3      JBossCache/src/org/jboss/cache/CacheImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -b -r1.82 -r1.83
  --- CacheImpl.java	6 Jun 2007 12:43:48 -0000	1.82
  +++ CacheImpl.java	6 Jun 2007 17:47:49 -0000	1.83
  @@ -2045,7 +2045,7 @@
            }
         }
   
  -      if (exclude_self && validMembers.size() > 0)
  +      if (exclude_self && !validMembers.isEmpty())
         {
            Object local_addr = getLocalAddress();
            if (local_addr != null)
  @@ -2053,7 +2053,7 @@
               validMembers.remove(local_addr);
            }
         }
  -      if (validMembers.size() == 0)
  +      if (validMembers.isEmpty())
         {
            if (log.isTraceEnabled())
            {
  @@ -2078,7 +2078,7 @@
         }
         if (mode == GroupRequest.GET_NONE)
         {
  -         return new ArrayList();// async case
  +         return Collections.EMPTY_LIST;// async case
         }
   
         if (log.isTraceEnabled())
  
  
  



More information about the jboss-cvs-commits mailing list