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

Manik Surtani manik at jboss.org
Fri Mar 30 10:06:34 EDT 2007


  User: msurtani
  Date: 07/03/30 10:06:34

  Modified:    src/org/jboss/cache/config   Configuration.java
                        ConfigurationComponent.java
  Log:
  Minor refactorings
  
  Revision  Changes    Path
  1.43      +17 -15    JBossCache/src/org/jboss/cache/config/Configuration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Configuration.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/Configuration.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -b -r1.42 -r1.43
  --- Configuration.java	12 Feb 2007 15:44:52 -0000	1.42
  +++ Configuration.java	30 Mar 2007 14:06:34 -0000	1.43
  @@ -6,14 +6,14 @@
    */
   package org.jboss.cache.config;
   
  -import java.util.Locale;
  -
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.Version;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.lock.IsolationLevel;
   import org.w3c.dom.Element;
   
  +import java.util.Locale;
  +
   /**
    * Encapsulates the configuration of a Cache.
    *
  @@ -83,13 +83,15 @@
      {
         /**
          * Data is exclusively locked during modification.
  -       * @see http://en.wikipedia.org/wiki/Concurrency_control (pessimistic)
  +       *
  +       * @see <a href="http://en.wikipedia.org/wiki/Concurrency_control">http://en.wikipedia.org/wiki/Concurrency_control (pessimistic)</a>
          */
         PESSIMISTIC,
         
         /**
          * Data is unlocked during modification, modifications merged at commit.
  -       * @see http://en.wikipedia.org/wiki/Optimistic_concurrency_control
  +       *
  +       * @see <a href="http://en.wikipedia.org/wiki/Optimistic_concurrency_control">http://en.wikipedia.org/wiki/Optimistic_concurrency_control</a>
          */      
         OPTIMISTIC
      }
  @@ -380,7 +382,8 @@
         setNodeLockingScheme(nodeLockingScheme);
      }
      
  -   private static String uc(String s) {
  +   private static String uc(String s)
  +   {
         return s.toUpperCase(Locale.ENGLISH);
      }
   
  @@ -634,7 +637,6 @@
         this.marshallerClass = marshallerClass;
      }
   
  -
      // ------------------------------------------------------------------------------------------------------------
      //   HELPERS
      // ------------------------------------------------------------------------------------------------------------
  
  
  
  1.6       +2 -2      JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConfigurationComponent.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/config/ConfigurationComponent.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- ConfigurationComponent.java	17 Jan 2007 01:31:07 -0000	1.5
  +++ ConfigurationComponent.java	30 Mar 2007 14:06:34 -0000	1.6
  @@ -21,7 +21,7 @@
    * that can be changed after the cache is started.
    *
    * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    * @see #testImmutability(String)
    */
   public class ConfigurationComponent implements Serializable, Cloneable
  @@ -30,7 +30,7 @@
   
      protected transient Log log = LogFactory.getLog(getClass());
      private transient CacheImpl cache; // back-reference to test whether the cache is running.
  -   private Set<ConfigurationComponent> children =
  +   private final Set<ConfigurationComponent> children =
              Collections.synchronizedSet(new HashSet<ConfigurationComponent>());
   
      protected ConfigurationComponent()
  
  
  



More information about the jboss-cvs-commits mailing list