martinc     2002/12/15 13:46:42

  Modified:    validator/src/share/org/apache/commons/validator
                        Validator.java ValidatorResources.java
                        ValidatorResourcesInitializer.java
                        ValidatorUtil.java
               validator/src/test/org/apache/commons/validator
                        ByteTest.java DoubleTest.java EmailTest.java
                        FloatTest.java IntegerTest.java LongTest.java
                        MultipleTests.java RequiredIfTest.java
                        RequiredNameTest.java ShortTest.java TypeTest.java
  Log:
  Update logging code to use LogFactory instead of LogSource, which has been
  deprecated since Commons Logging 1.0.
  
  Revision  Changes    Path
  1.11      +8 -8      
jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Validator.java    25 Oct 2002 03:22:55 -0000      1.10
  +++ Validator.java    15 Dec 2002 21:46:41 -0000      1.11
  @@ -77,7 +77,7 @@
   import java.lang.reflect.Modifier;
   import org.apache.commons.beanutils.PropertyUtils;
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
   
   /**
  @@ -95,7 +95,7 @@
      /**
       * Logger
      */
  -   protected static Log log = LogSource.getInstance(Validator.class.getName());
  +   protected static Log log = LogFactory.getLog(Validator.class);
   
      /**
       * Resources key the JavaBean is stored to perform validation on.
  @@ -147,8 +147,8 @@
      protected ClassLoader classLoader = null;
   
      /**
  -    * Do we want to use the Context ClassLoader when loading classes
  -    * for instantiating new objects?  Default is <code>false</code>.
  +    * Whether or not to use the Context ClassLoader when loading classes
  +    * for instantiating new objects.  Default is <code>false</code>.
      */
      protected boolean useContextClassLoader = false;
   
  
  
  
  1.9       +6 -6      
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java
  
  Index: ValidatorResources.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResources.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ValidatorResources.java   4 Dec 2002 21:24:01 -0000       1.8
  +++ ValidatorResources.java   15 Dec 2002 21:46:41 -0000      1.9
  @@ -71,7 +71,7 @@
   import java.util.Map;
   import org.apache.commons.collections.FastHashMap;    
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
   
   /**
  @@ -90,7 +90,7 @@
      /**
       * Logger
      */
  -   protected static Log log = 
LogSource.getInstance(ValidatorResources.class.getName());
  +   protected static Log log = LogFactory.getLog(ValidatorResources.class);
      
      /**
       * <code>FastHashMap</code> of <code>FormSet</code>s stored under 
  
  
  
  1.10      +6 -6      
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResourcesInitializer.java
  
  Index: ValidatorResourcesInitializer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResourcesInitializer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ValidatorResourcesInitializer.java        13 Nov 2002 02:02:56 -0000      1.9
  +++ ValidatorResourcesInitializer.java        15 Dec 2002 21:46:41 -0000      1.10
  @@ -70,7 +70,7 @@
   import org.apache.commons.digester.Digester;
   import org.xml.sax.SAXException;
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
   
   /**
  @@ -85,7 +85,7 @@
      /**
       * Logger
      */
  -   protected static Log log = 
LogSource.getInstance(ValidatorResourcesInitializer.class.getName());
  +   protected static Log log = 
LogFactory.getLog(ValidatorResourcesInitializer.class);
      
   
       /**
  
  
  
  1.6       +6 -6      
jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorUtil.java
  
  Index: ValidatorUtil.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorUtil.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ValidatorUtil.java        30 Mar 2002 04:33:17 -0000      1.5
  +++ ValidatorUtil.java        15 Dec 2002 21:46:41 -0000      1.6
  @@ -67,7 +67,7 @@
   import org.apache.commons.beanutils.PropertyUtils;
   import org.apache.commons.collections.FastHashMap; 
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
   
   /**
  @@ -81,7 +81,7 @@
      /**
       * Logger
      */
  -   protected static Log log = LogSource.getInstance(ValidatorUtil.class.getName());
  +   protected static Log log = LogFactory.getLog(ValidatorUtil.class);
      
      /**
       * <p>Replace part of a <code>String</code> with another value.</p>
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/ByteTest.java
  
  Index: ByteTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/ByteTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ByteTest.java     15 Dec 2002 20:58:57 -0000      1.2
  +++ ByteTest.java     15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/DoubleTest.java
  
  Index: DoubleTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/DoubleTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DoubleTest.java   15 Dec 2002 20:58:57 -0000      1.2
  +++ DoubleTest.java   15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.4       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java
  
  Index: EmailTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/EmailTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EmailTest.java    15 Dec 2002 20:58:57 -0000      1.3
  +++ EmailTest.java    15 Dec 2002 21:46:41 -0000      1.4
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/FloatTest.java
  
  Index: FloatTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/FloatTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FloatTest.java    15 Dec 2002 20:58:57 -0000      1.2
  +++ FloatTest.java    15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/IntegerTest.java
  
  Index: IntegerTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/IntegerTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IntegerTest.java  15 Dec 2002 20:58:57 -0000      1.2
  +++ IntegerTest.java  15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/LongTest.java
  
  Index: LongTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/LongTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LongTest.java     15 Dec 2002 20:58:57 -0000      1.2
  +++ LongTest.java     15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.2       +5 -5      
jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java
  
  Index: MultipleTests.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultipleTests.java        24 Sep 2002 20:23:35 -0000      1.1
  +++ MultipleTests.java        15 Dec 2002 21:46:41 -0000      1.2
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
   /**
    * <p>Performs Validation Test.</p>
  @@ -95,7 +95,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
   
      /**
       * Resources used for validation tests.
  
  
  
  1.2       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/RequiredIfTest.java
  
  Index: RequiredIfTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/RequiredIfTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RequiredIfTest.java       19 Sep 2002 17:11:46 -0000      1.1
  +++ RequiredIfTest.java       15 Dec 2002 21:46:41 -0000      1.2
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
                                                             
   /**                                                       
    * <p>Performs Validation Test.</p> 
  @@ -95,7 +95,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.5       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/RequiredNameTest.java
  
  Index: RequiredNameTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/RequiredNameTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RequiredNameTest.java     15 Dec 2002 20:58:57 -0000      1.4
  +++ RequiredNameTest.java     15 Dec 2002 21:46:41 -0000      1.5
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.3       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/ShortTest.java
  
  Index: ShortTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/ShortTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ShortTest.java    15 Dec 2002 20:58:57 -0000      1.2
  +++ ShortTest.java    15 Dec 2002 21:46:41 -0000      1.3
  @@ -70,7 +70,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -96,7 +96,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  
  1.4       +6 -6      
jakarta-commons/validator/src/test/org/apache/commons/validator/TypeTest.java
  
  Index: TypeTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/TypeTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TypeTest.java     15 Dec 2002 20:58:57 -0000      1.3
  +++ TypeTest.java     15 Dec 2002 21:46:41 -0000      1.4
  @@ -71,7 +71,7 @@
   import junit.framework.TestSuite;
   import junit.framework.AssertionFailedError;              
   import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogSource;
  +import org.apache.commons.logging.LogFactory;
   
                                                             
   /**                                                       
  @@ -97,7 +97,7 @@
      /**
       * Commons Logging instance.
      */
  -   private Log log = LogSource.getInstance(this.getClass().getName());
  +   private Log log = LogFactory.getLog(this.getClass());
      
      /**
       * Resources used for validation tests.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to